Commit 0e167e59 authored by Thiago Santos's avatar Thiago Santos

pulseaudiosink: Use new GstIterator API correctly

GstIterator now uses GValue, use it correctly.
parent 919dcf40
......@@ -310,12 +310,15 @@ static GstPad *
get_proxypad (GstPad * sinkpad)
{
GstIterator *iter = NULL;
GValue res = { 0 };
GstPad *proxypad = NULL;
iter = gst_pad_iterate_internal_links (sinkpad);
if (iter) {
if (gst_iterator_next (iter, (gpointer) & proxypad) != GST_ITERATOR_OK)
proxypad = NULL;
if (gst_iterator_next (iter, &res) == GST_ITERATOR_OK) {
proxypad = g_value_dup_object (&res);
g_value_reset (&res);
}
gst_iterator_free (iter);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment