diff options
author | Youness Alaoui <youness.alaoui@collabora.co.uk> | 2011-08-26 00:52:46 +0000 |
---|---|---|
committer | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2011-08-26 09:51:46 +0200 |
commit | e380fbb0198244e02ef1795d67878c584a04fa96 (patch) | |
tree | 54671a211132ef84163d100b5064d87cd49d5978 | |
parent | 108493ee5151832adb7bd66ed5f074ef0921cebf (diff) |
tsdemux: In push mode, do not start pull loop if upstream seek fails
-rw-r--r-- | gst/mpegtsdemux/mpegtsbase.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gst/mpegtsdemux/mpegtsbase.c b/gst/mpegtsdemux/mpegtsbase.c index 1749ba2cc..e76677855 100644 --- a/gst/mpegtsdemux/mpegtsbase.c +++ b/gst/mpegtsdemux/mpegtsbase.c @@ -1442,7 +1442,7 @@ mpegts_base_handle_seek_event (MpegTSBase * base, GstPad * pad, if (base->mode == BASE_MODE_PUSHING) { GST_ERROR ("seeking in push mode not supported"); - goto done; + goto push_mode; } /* stop streaming, either by flushing or by pausing the task */ @@ -1493,7 +1493,7 @@ mpegts_base_handle_seek_event (MpegTSBase * base, GstPad * pad, //else done: gst_pad_start_task (base->sinkpad, (GstTaskFunction) mpegts_base_loop, base); - +push_mode: GST_PAD_STREAM_UNLOCK (base->sinkpad); return ret == GST_FLOW_OK; } |