Commit 7ee3cdc6 authored by Romain Perier's avatar Romain Perier
Browse files

Don't call gst_object_unref on a GstCaps, it does not inherit neither from...

Don't call gst_object_unref on a GstCaps, it does not inherit neither from GstObject nor from GObject.
Use gst_caps_unref instead, it fixes a critical message "GLib-GObject-CRITICAL" and also a memleak.
parent b9e057de
......@@ -67,7 +67,7 @@ AudioDataOutput::AudioDataOutput(Backend *backend, QObject *parent)
gst_bin_add_many(GST_BIN(m_queue), sink, convert, queue, NULL);
gst_element_link(queue, convert);
gst_element_link_filtered(convert, sink, caps);
gst_object_unref(caps);
gst_caps_unref(caps);
GstPad *inputpad = gst_element_get_static_pad(queue, "sink");
gst_element_add_pad(m_queue, gst_ghost_pad_new("sink", inputpad));
......
Supports Markdown
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