Selaa lähdekoodia

avoid sleeping forever, keep nc open on eof for stdin

David 10 vuotta sitten
vanhempi
commit
2691f8ce0c
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 2 2
      server/streamp2p.sh

+ 2 - 2
server/streamp2p.sh

@@ -74,8 +74,8 @@ VIDEOSRC='shmsrc socket-path='$ctrsocket' do-timestamp=true is-live=true'
 AUDIOSRC="fdsrc fd=0 do-timestamp=true"
 
 
-( echo "audio sink ctr isaudio $audiosink" ; sleep 100000000 ) | \
-    /bin/nc 127.0.0.1 9999      | \
+( echo "audio sink ctr isaudio $audiosink" ) | \
+    /bin/nc -q -1 127.0.0.1 9999      | \
     (head -1
      gst-launch-1.0 -q -e                               \
             $VIDEOSRC                               !\