mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
mpegtsbase: don't push events upstream in pull mode
In pull mode, don't push the seek event upstream.
This commit is contained in:
parent
cd001d7b8e
commit
eaf4d97815
1 changed files with 11 additions and 12 deletions
|
@ -1606,12 +1606,18 @@ mpegts_base_handle_seek_event (MpegTSBase * base, GstPad * pad,
|
||||||
if (format != GST_FORMAT_TIME)
|
if (format != GST_FORMAT_TIME)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
|
if (base->mode == BASE_MODE_PUSHING) {
|
||||||
/* First try if upstream supports seeking in TIME format */
|
/* First try if upstream supports seeking in TIME format */
|
||||||
if (gst_pad_push_event (base->sinkpad, gst_event_ref (event))) {
|
if (gst_pad_push_event (base->sinkpad, gst_event_ref (event))) {
|
||||||
GST_DEBUG ("upstream handled SEEK event");
|
GST_DEBUG ("upstream handled SEEK event");
|
||||||
gst_event_unref (event);
|
gst_event_unref (event);
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
/* FIXME : Actually ... it is supported, we just need to convert
|
||||||
|
* the seek event to BYTES */
|
||||||
|
GST_ERROR ("seeking in push mode not supported");
|
||||||
|
goto push_mode;
|
||||||
|
}
|
||||||
|
|
||||||
GST_DEBUG ("seek event, rate: %f start: %" GST_TIME_FORMAT
|
GST_DEBUG ("seek event, rate: %f start: %" GST_TIME_FORMAT
|
||||||
" stop: %" GST_TIME_FORMAT, rate, GST_TIME_ARGS (start),
|
" stop: %" GST_TIME_FORMAT, rate, GST_TIME_ARGS (start),
|
||||||
|
@ -1619,13 +1625,6 @@ mpegts_base_handle_seek_event (MpegTSBase * base, GstPad * pad,
|
||||||
|
|
||||||
flush = flags & GST_SEEK_FLAG_FLUSH;
|
flush = flags & GST_SEEK_FLAG_FLUSH;
|
||||||
|
|
||||||
if (base->mode == BASE_MODE_PUSHING) {
|
|
||||||
/* FIXME : Actually ... it is supported, we just need to convert
|
|
||||||
* the seek event to BYTES */
|
|
||||||
GST_ERROR ("seeking in push mode not supported");
|
|
||||||
goto push_mode;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* stop streaming, either by flushing or by pausing the task */
|
/* stop streaming, either by flushing or by pausing the task */
|
||||||
base->mode = BASE_MODE_SEEKING;
|
base->mode = BASE_MODE_SEEKING;
|
||||||
if (flush) {
|
if (flush) {
|
||||||
|
|
Loading…
Reference in a new issue