mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-19 00:01:23 +00:00
Revert "media: only flush when setting a new start position"
This reverts commit f67fc23aab
.
We need to do the flush in all cases, demuxer block currently for
non-flushing seeks.
This commit is contained in:
parent
f67fc23aab
commit
73551543b8
1 changed files with 6 additions and 6 deletions
|
@ -1548,14 +1548,14 @@ gst_rtsp_media_seek (GstRTSPMedia * media, GstRTSPTimeRange * range)
|
|||
if (priv->blocked)
|
||||
media_streams_set_blocked (media, TRUE);
|
||||
|
||||
flags = GST_SEEK_FLAG_NONE;
|
||||
|
||||
/* only set flush and keyframe flag when modifying start */
|
||||
if (start_type != GST_SEEK_TYPE_NONE)
|
||||
flags = GST_SEEK_FLAG_FLUSH | GST_SEEK_FLAG_KEY_UNIT;
|
||||
|
||||
/* depends on the current playing state of the pipeline. We might need to
|
||||
* queue this until we get EOS. */
|
||||
flags = GST_SEEK_FLAG_FLUSH;
|
||||
|
||||
/* only set keyframe flag when modifying start */
|
||||
if (start_type != GST_SEEK_TYPE_NONE)
|
||||
flags |= GST_SEEK_FLAG_KEY_UNIT;
|
||||
|
||||
/* FIXME, we only do forwards */
|
||||
res = gst_element_seek (priv->pipeline, 1.0, GST_FORMAT_TIME,
|
||||
flags, start_type, start, stop_type, stop);
|
||||
|
|
Loading…
Reference in a new issue