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
/* time and duration expressed in global timescale */
segment->time = stime;
/* add non scaled values so we don't cause roundoff errors */
- if (duration) {
+ if (duration || media_start == GST_CLOCK_TIME_NONE) {
time += duration;
stime = QTTIME_TO_GSTTIME (qtdemux, time);
segment->duration = stime - segment->time;