asfdemux: avoid some more invalid timestamp arithmetic

Fixes https://bugzilla.gnome.org/show_bug.cgi?id=681291
This commit is contained in:
Sreerenj Balachandran 2012-08-06 15:31:50 +03:00 committed by Mark Nauwelaerts
parent 87d9927126
commit f7a4318b54

View file

@ -148,6 +148,7 @@ gst_asf_payload_queue_for_stream (GstASFDemux * demux, AsfPayload * payload,
/* make timestamps start from 0 */
if (G_LIKELY (GST_CLOCK_TIME_IS_VALID (demux->first_ts) &&
GST_CLOCK_TIME_IS_VALID (payload->ts) &&
demux->first_ts < payload->ts))
payload->ts -= demux->first_ts;
else