Red Hat Linux
Click URL instructions:
Right-click on ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)
You seem to have CSS turned off.
Please don't fill out this field.
Briefly describe the problem (required):
Please provide the ad click URL, if possible:
Author: Edward Hervey <bilboed@...>
Date: Mon Mar 1 14:05:58 2010 +0100
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.
gst/asfdemux/asfpacket.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/gst/asfdemux/asfpacket.c b/gst/asfdemux/asfpacket.c
index d266593..924ede8 100644
@@ -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;
+ payload.duration = GST_CLOCK_TIME_NONE;
gst_asf_payload_queue_for_stream (demux, &payload, stream);
Sign up for the SourceForge newsletter: