asfdemux: fix a seek failure due to out-of-range in push mode

A seek in push mode failed for big offsets which are beyond
the range of guint32.

https://bugzilla.gnome.org/show_bug.cgi?id=748162
This commit is contained in:
Cliff Han 2015-04-20 14:35:30 +09:00 committed by Vincent Penquerc'h
parent 27a2691766
commit 92f5f3f8f3

View file

@ -592,7 +592,7 @@ gst_asf_demux_handle_seek_push (GstASFDemux * demux, GstEvent * event)
GST_DEBUG_OBJECT (demux, "seeking to packet %d", packet);
cur = demux->data_offset + (packet * demux->packet_size);
cur = demux->data_offset + ((guint64) packet * demux->packet_size);
GST_DEBUG_OBJECT (demux, "Pushing BYTE seek rate %g, "
"start %" G_GINT64_FORMAT ", stop %" G_GINT64_FORMAT, rate, cur, stop);