rtsp: go back into the loop after doing pause
authorYouness Alaoui <youness.alaoui at collabora.co.uk>
Fri, 21 Jun 2013 08:32:30 +0000 (10:32 +0200)
committerWim Taymans <wim.taymans@collabora.co.uk>
Fri, 21 Jun 2013 08:42:20 +0000 (10:42 +0200)
After we do a pause request, go back to loop mode so that we can listen
for server messages again.

See https://bugzilla.gnome.org/show_bug.cgi?id=702705

gst/rtsp/gstrtspsrc.c

index d751d8d..0420ccf 100644 (file)
@@ -6809,7 +6809,8 @@ gst_rtspsrc_thread (GstRTSPSrc * src)
 
   GST_OBJECT_LOCK (src);
   cmd = src->pending_cmd;
-  if (cmd == CMD_RECONNECT || cmd == CMD_PLAY || cmd == CMD_LOOP)
+  if (cmd == CMD_RECONNECT || cmd == CMD_PLAY || cmd == CMD_PAUSE
+      || cmd == CMD_LOOP)
     src->pending_cmd = CMD_LOOP;
   else
     src->pending_cmd = CMD_WAIT;