diff --git a/ext/theora/theoradec.c b/ext/theora/theoradec.c index 169fc29c68..6eef4729d5 100644 --- a/ext/theora/theoradec.c +++ b/ext/theora/theoradec.c @@ -430,7 +430,7 @@ theora_dec_src_query (GstPad * pad, GstQuery * query) case GST_QUERY_DURATION: { /* forward to peer for total */ - res = gst_pad_peer_query (pad, query); + res = gst_pad_peer_query (dec->sinkpad, query); if (!res) goto error;