From 0a593a1e986dab3397755be03f702f03cbf6fe2f Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Tue, 2 Aug 2011 12:40:22 +0200 Subject: [PATCH] asfdemux: Fix for changes in GstQuery API --- gst/asfdemux/gstasfdemux.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gst/asfdemux/gstasfdemux.c b/gst/asfdemux/gstasfdemux.c index 94b6cb4dfc..5b3ee34983 100644 --- a/gst/asfdemux/gstasfdemux.c +++ b/gst/asfdemux/gstasfdemux.c @@ -667,10 +667,9 @@ gst_asf_demux_handle_seek_event (GstASFDemux * demux, GstEvent * event) gstmms will do a time based seek to get the byte offset, this is not a problem as the seek to this offset needs to happen anway. */ gint64 offset; - GstFormat dest_format = GST_FORMAT_BYTES; if (gst_pad_query_peer_convert (demux->sinkpad, GST_FORMAT_TIME, seek_time, - &dest_format, &offset) && dest_format == GST_FORMAT_BYTES) { + GST_FORMAT_BYTES, &offset)) { packet = (offset - demux->data_offset) / demux->packet_size; GST_LOG_OBJECT (demux, "convert %" GST_TIME_FORMAT " to bytes query result: %" G_GINT64_FORMAT ", data_ofset: %"