From: Edward Hervey Date: Mon, 1 Mar 2010 13:05:58 +0000 (+0100) Subject: asfdemux: Make sure we always set proper payload duration. X-Git-Tag: RELEASE-0.10.14~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=79b154e4f787cdb513d258893c07efd935e30fa1;p=platform%2Fupstream%2Fgst-plugins-ugly.git asfdemux: Make sure we always set proper payload duration. Some (broken) streams will have a delta of 0, resulting in outgoing buffers having durations of 0. Fixes #611473 --- diff --git a/gst/asfdemux/asfpacket.c b/gst/asfdemux/asfpacket.c index d266593..924ede8 100644 --- a/gst/asfdemux/asfpacket.c +++ b/gst/asfdemux/asfpacket.c @@ -443,7 +443,10 @@ gst_asf_demux_parse_payload (GstASFDemux * demux, AsfPacket * packet, &payload_data, &payload_len, sub_payload_len); payload.ts = ts; - payload.duration = ts_delta; + if (G_LIKELY (ts_delta)) + payload.duration = ts_delta; + else + payload.duration = GST_CLOCK_TIME_NONE; gst_asf_payload_queue_for_stream (demux, &payload, stream); }