mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-09-08 21:28:45 +00:00
qtdemux: Push a GAP event if there's a second *or more*
And not "more than a second"
This commit is contained in:
parent
2e45926a96
commit
6e21faffe7
1 changed files with 2 additions and 2 deletions
|
@ -5811,9 +5811,9 @@ gst_qtdemux_loop_state_movie (GstQTDemux * qtdemux)
|
||||||
GST_TIME_ARGS (dts), GST_TIME_ARGS (pts), GST_TIME_ARGS (duration));
|
GST_TIME_ARGS (dts), GST_TIME_ARGS (pts), GST_TIME_ARGS (duration));
|
||||||
|
|
||||||
if (G_UNLIKELY (empty)) {
|
if (G_UNLIKELY (empty)) {
|
||||||
/* empty segment, push a gap if there's more than a second
|
/* empty segment, push a gap if there's a second or more
|
||||||
* difference and move to the next one */
|
* difference and move to the next one */
|
||||||
if ((pts + duration - stream->segment.position) > GST_SECOND)
|
if ((pts + duration - stream->segment.position) >= GST_SECOND)
|
||||||
gst_pad_push_event (stream->pad, gst_event_new_gap (pts, duration));
|
gst_pad_push_event (stream->pad, gst_event_new_gap (pts, duration));
|
||||||
stream->segment.position = pts + duration;
|
stream->segment.position = pts + duration;
|
||||||
goto next;
|
goto next;
|
||||||
|
|
Loading…
Reference in a new issue