Explorar o código

sleep forever in nc, remove 'sleep'

David %!s(int64=10) %!d(string=hai) anos
pai
achega
70cb94d2ad
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      server/stream.sh

+ 2 - 2
server/stream.sh

@@ -73,8 +73,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 -e                               \
             $VIDEOSRC                               !\