From 79b154e4f787cdb513d258893c07efd935e30fa1 Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Mon, 1 Mar 2010 14:05:58 +0100 Subject: [PATCH] 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 --- gst/asfdemux/asfpacket.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/gst/asfdemux/asfpacket.c b/gst/asfdemux/asfpacket.c index d2665938d4..924ede8bf2 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); }