rtspsrc: pause the task instead of spinning
authorWim Taymans <wim.taymans@collabora.co.uk>
Thu, 22 Nov 2012 10:34:31 +0000 (11:34 +0100)
committerWim Taymans <wim.taymans@collabora.co.uk>
Thu, 22 Nov 2012 10:34:31 +0000 (11:34 +0100)
Actually pause the loop task instead of spinning forever.

gst/rtsp/gstrtspsrc.c

index 07588c1..71262fc 100644 (file)
@@ -4218,6 +4218,7 @@ pause:
           ("streaming task paused, reason %s (%d)", reason, ret));
       gst_rtspsrc_push_event (src, gst_event_new_eos ());
     }
+    gst_rtspsrc_loop_send_cmd (src, CMD_WAIT, CMD_LOOP);
     return FALSE;
   }
 }