qml: Don't forget to unref the actual sink element after setting it on glsinkbin

This commit is contained in:
Sebastian Dröge 2016-07-22 17:00:14 +03:00
parent b10ab99e02
commit d6c173d038

View file

@ -52,6 +52,7 @@ int main(int argc, char *argv[])
g_assert (src && sink && sinkbin);
g_object_set (sinkbin, "sink", sink, NULL);
g_object_unref (sink);
gst_bin_add_many (GST_BIN (pipeline), src, sinkbin, NULL);
gst_element_link_many (src, sinkbin, NULL);