summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--gst/mpegdemux/gstmpegdemux.c2
-rw-r--r--gst/mpegdemux/gstmpegtsdemux.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/gst/mpegdemux/gstmpegdemux.c b/gst/mpegdemux/gstmpegdemux.c
index f8cba31b..18ecef8d 100644
--- a/gst/mpegdemux/gstmpegdemux.c
+++ b/gst/mpegdemux/gstmpegdemux.c
@@ -1368,7 +1368,7 @@ gst_flups_demux_src_query (GstPad * pad, GstQuery * query)
* have the SCR
*/
peerquery = gst_query_new_seeking (GST_FORMAT_BYTES);
- res = gst_pad_peer_query (demux->sinkpad, query);
+ res = gst_pad_peer_query (demux->sinkpad, peerquery);
if (!res || demux->scr_rate_n == G_MAXUINT64
|| demux->scr_rate_d == G_MAXUINT64) {
gst_query_set_seeking (query, fmt, FALSE, -1, -1);
diff --git a/gst/mpegdemux/gstmpegtsdemux.c b/gst/mpegdemux/gstmpegtsdemux.c
index eb40b186..7873266a 100644
--- a/gst/mpegdemux/gstmpegtsdemux.c
+++ b/gst/mpegdemux/gstmpegtsdemux.c
@@ -2778,7 +2778,7 @@ gst_mpegts_demux_src_pad_query (GstPad * pad, GstQuery * query)
* have a bitrate
*/
peerquery = gst_query_new_seeking (GST_FORMAT_BYTES);
- res = gst_pad_peer_query (demux->sinkpad, query);
+ res = gst_pad_peer_query (demux->sinkpad, peerquery);
if (!res || demux->bitrate == -1) {
gst_query_set_seeking (query, fmt, FALSE, -1, -1);
} else {