mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-03 16:09:39 +00:00
qtdemux: Fix parsing segment duration of empty edit list box
For empty edit list, segment-duration in edit list box should not be used for segment event. https://bugzilla.gnome.org/show_bug.cgi?id=764870
This commit is contained in:
parent
cbdbfc8902
commit
faa664b8ea
1 changed files with 1 additions and 1 deletions
|
@ -8326,7 +8326,7 @@ qtdemux_parse_segments (GstQTDemux * qtdemux, QtDemuxStream * stream,
|
||||||
/* time and duration expressed in global timescale */
|
/* time and duration expressed in global timescale */
|
||||||
segment->time = stime;
|
segment->time = stime;
|
||||||
/* add non scaled values so we don't cause roundoff errors */
|
/* add non scaled values so we don't cause roundoff errors */
|
||||||
if (duration) {
|
if (duration || media_start == GST_CLOCK_TIME_NONE) {
|
||||||
time += duration;
|
time += duration;
|
||||||
stime = QTTIME_TO_GSTTIME (qtdemux, time);
|
stime = QTTIME_TO_GSTTIME (qtdemux, time);
|
||||||
segment->duration = stime - segment->time;
|
segment->duration = stime - segment->time;
|
||||||
|
|
Loading…
Reference in a new issue