summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 79b154e)
raw | patch | inline | side by side (parent: 79b154e)
author | Edward Hervey <bilboed@bilboed.com> | |
Mon, 1 Mar 2010 13:07:20 +0000 (14:07 +0100) | ||
committer | Edward Hervey <bilboed@bilboed.com> | |
Mon, 1 Mar 2010 15:52:08 +0000 (16:52 +0100) |
Some (broken) streams don't have the extended stream properties in
the header, resulting in applying a duration of zero on outgoing
buffers.
Fixes #611473
the header, resulting in applying a duration of zero on outgoing
buffers.
Fixes #611473
gst/asfdemux/gstasfdemux.c | patch | blob | history |
index f5eccee8291624d07336ecc075e4de0599001563..72d81dfdbb5764cec8521d02c56a3a9d70c3c337 100644 (file)
* position reporting if a live src is playing not so live content
* (e.g. rtspsrc taking some time to fall back to tcp) */
GST_BUFFER_TIMESTAMP (payload->buf) = payload->ts + demux->in_gap;
- if (payload->duration == GST_CLOCK_TIME_NONE)
+ if (payload->duration == GST_CLOCK_TIME_NONE
+ && stream->ext_props.avg_time_per_frame != 0)
GST_BUFFER_DURATION (payload->buf) =
stream->ext_props.avg_time_per_frame * 100;
else