From 08c16c0db7355f509b13392a215748ce8d39a9ce Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Wed, 9 Dec 2009 16:38:43 +0100 Subject: [PATCH] vorbisdec: use gst_pad_peer_query() --- ext/vorbis/vorbisdec.c | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/ext/vorbis/vorbisdec.c b/ext/vorbis/vorbisdec.c index 6b86f3a0f8..8b96594378 100644 --- a/ext/vorbis/vorbisdec.c +++ b/ext/vorbis/vorbisdec.c @@ -344,16 +344,7 @@ vorbis_dec_src_query (GstPad * pad, GstQuery * query) } case GST_QUERY_DURATION: { - GstPad *peer; - - if (!(peer = gst_pad_get_peer (dec->sinkpad))) { - GST_WARNING_OBJECT (dec, "sink pad %" GST_PTR_FORMAT " is not linked", - dec->sinkpad); - goto error; - } - - res = gst_pad_query (peer, query); - gst_object_unref (peer); + res = gst_pad_peer_query (pad, query); if (!res) goto error;