Commit f0399ed4 authored by Thibault Saunier's avatar Thibault Saunier

urisourcebin: Avoid unreffing a pad we are not owning

expose_output_pad takes ownership of the pad.
parent faaa2423
......@@ -1454,13 +1454,16 @@ analyse_source (GstURISourceBin * urisrc, gboolean * is_raw,
gst_object_unref (pad);
pad = slot->srcpad;
} else {
pad = create_output_pad (urisrc, pad);
GstPad *tmppad = create_output_pad (urisrc, pad);
gst_object_unref (pad);
pad = tmppad;
}
GST_URI_SOURCE_BIN_UNLOCK (urisrc);
expose_output_pad (urisrc, pad);
} else {
gst_object_unref (pad);
}
gst_object_unref (pad);
g_value_reset (&item);
break;
}
......
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