Commit ddbf1ee1 authored by Jan Arne Petersen's avatar Jan Arne Petersen Committed by Wim Taymans

ext/ffmpeg/gstffmpegdemux.c: Use total duration when the individual stream duration is not known.

Original commit message from CVS:
Patch by: Jan Arne Petersen <jpetersen at jpetersen dot org>
* ext/ffmpeg/gstffmpegdemux.c: (gst_ffmpegdemux_src_query):
Use total duration when the individual stream duration is not known.
Fixes #375534.
parent 99173066
2007-06-05 Wim Taymans <wim@fluendo.com>
Patch by: Jan Arne Petersen <jpetersen at jpetersen dot org>
* ext/ffmpeg/gstffmpegdemux.c: (gst_ffmpegdemux_src_query):
Use total duration when the individual stream duration is not known.
Fixes #375534.
2007-06-05 Wim Taymans <wim@fluendo.com> 2007-06-05 Wim Taymans <wim@fluendo.com>
Patch by: Laurent Glayal <spglegle at yahoo dot fr> Patch by: Laurent Glayal <spglegle at yahoo dot fr>
......
...@@ -704,8 +704,12 @@ gst_ffmpegdemux_src_query (GstPad * pad, GstQuery * query) ...@@ -704,8 +704,12 @@ gst_ffmpegdemux_src_query (GstPad * pad, GstQuery * query)
timeduration = timeduration =
gst_ffmpeg_time_ff_to_gst (avstream->duration, avstream->time_base); gst_ffmpeg_time_ff_to_gst (avstream->duration, avstream->time_base);
if (!(GST_CLOCK_TIME_IS_VALID (timeduration))) if (!(GST_CLOCK_TIME_IS_VALID (timeduration))) {
break; /* use duration of complete file if the stream duration is not known */
timeduration = demux->duration;
if (!(GST_CLOCK_TIME_IS_VALID (timeduration)))
break;
}
switch (format) { switch (format) {
case GST_FORMAT_TIME: case GST_FORMAT_TIME:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment