rtspsrc: also go into the loop function after connect
authorWim Taymans <wim.taymans@collabora.co.uk>
Fri, 27 Sep 2013 13:05:04 +0000 (15:05 +0200)
committerWim Taymans <wim.taymans@collabora.co.uk>
Fri, 27 Sep 2013 13:08:31 +0000 (15:08 +0200)
When we have opened the stream, go into the loop function so that we can
receive messages from the server.

gst/rtsp/gstrtspsrc.c

index 0f3a0e6..7716274 100644 (file)
@@ -6971,7 +6971,7 @@ gst_rtspsrc_thread (GstRTSPSrc * src)
   GST_OBJECT_LOCK (src);
   cmd = src->pending_cmd;
   if (cmd == CMD_RECONNECT || cmd == CMD_PLAY || cmd == CMD_PAUSE
-      || cmd == CMD_LOOP)
+      || cmd == CMD_LOOP || cmd == CMD_OPEN)
     src->pending_cmd = CMD_LOOP;
   else
     src->pending_cmd = CMD_WAIT;