mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 01:00:37 +00:00
vorbisdec: use gst_pad_peer_query()
This commit is contained in:
parent
26071d748f
commit
08c16c0db7
1 changed files with 1 additions and 10 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue