mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 05:46:13 +00:00
pulseaudiosink: Use new GstIterator API correctly
GstIterator now uses GValue, use it correctly.
This commit is contained in:
parent
919dcf405d
commit
0e167e59d4
1 changed files with 5 additions and 2 deletions
|
@ -310,12 +310,15 @@ static GstPad *
|
||||||
get_proxypad (GstPad * sinkpad)
|
get_proxypad (GstPad * sinkpad)
|
||||||
{
|
{
|
||||||
GstIterator *iter = NULL;
|
GstIterator *iter = NULL;
|
||||||
|
GValue res = { 0 };
|
||||||
GstPad *proxypad = NULL;
|
GstPad *proxypad = NULL;
|
||||||
|
|
||||||
iter = gst_pad_iterate_internal_links (sinkpad);
|
iter = gst_pad_iterate_internal_links (sinkpad);
|
||||||
if (iter) {
|
if (iter) {
|
||||||
if (gst_iterator_next (iter, (gpointer) & proxypad) != GST_ITERATOR_OK)
|
if (gst_iterator_next (iter, &res) == GST_ITERATOR_OK) {
|
||||||
proxypad = NULL;
|
proxypad = g_value_dup_object (&res);
|
||||||
|
g_value_reset (&res);
|
||||||
|
}
|
||||||
gst_iterator_free (iter);
|
gst_iterator_free (iter);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue