vorbisdec: use gst_pad_peer_query()
This commit is contained in:
parent
26071d748f
commit
08c16c0db7
@ -344,16 +344,7 @@ vorbis_dec_src_query (GstPad * pad, GstQuery * query)
|
|||||||
}
|
}
|
||||||
case GST_QUERY_DURATION:
|
case GST_QUERY_DURATION:
|
||||||
{
|
{
|
||||||
GstPad *peer;
|
res = gst_pad_peer_query (pad, query);
|
||||||
|
|
||||||
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);
|
|
||||||
if (!res)
|
if (!res)
|
||||||
goto error;
|
goto error;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user