playbin: Don't ref_sink() the sinks twice
Since we're already sunk floating reference, we shouldn't call ref_sink again, which increases the ref_count and cause leaks. https://bugzilla.gnome.org/show_bug.cgi?id=789547
This commit is contained in:
parent
5e373936bb
commit
2ec51ef998
@ -4663,7 +4663,6 @@ autoplug_select_cb (GstElement * decodebin, GstPad * pad,
|
|||||||
gst_plugin_feature_get_name (GST_PLUGIN_FEATURE (ave->sink)));
|
gst_plugin_feature_get_name (GST_PLUGIN_FEATURE (ave->sink)));
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
gst_object_ref_sink (*sinkp);
|
|
||||||
created_sink = TRUE;
|
created_sink = TRUE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user