From 1d00afde9753aefe00d07bf846aa55feb79249bd Mon Sep 17 00:00:00 2001 From: Sjoerd Simons Date: Thu, 8 May 2008 08:15:34 +0000 Subject: gst/matroska/matroska-mux.c: Update the track duration if the old one was invalid. Original commit message from CVS: Patch by: Sjoerd Simons * gst/matroska/matroska-mux.c: (gst_matroska_mux_collected): Update the track duration if the old one was invalid. Fixes bug #532117. --- gst/matroska/matroska-mux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gst') diff --git a/gst/matroska/matroska-mux.c b/gst/matroska/matroska-mux.c index 098b2fc0..dd3fbd32 100644 --- a/gst/matroska/matroska-mux.c +++ b/gst/matroska/matroska-mux.c @@ -1972,7 +1972,7 @@ gst_matroska_mux_collected (GstCollectPads * pads, gpointer user_data) else if (best->track->default_duration) end_ts += best->track->default_duration; - if (end_ts > best->end_ts) + if (!GST_CLOCK_TIME_IS_VALID (best->end_ts) || end_ts > best->end_ts) best->end_ts = end_ts; if (G_UNLIKELY (best->start_ts == GST_CLOCK_TIME_NONE || -- cgit