v4l2: Don't free props structure twice.

gst_v4l2_device_provider_probe_device() frees the passed props
structure, don't free it again in the caller.
This commit is contained in:
Jan Schmidt 2016-01-20 18:20:43 +11:00
parent 496137854b
commit d34910bf30

View file

@ -198,7 +198,6 @@ gst_v4l2_device_provider_probe (GstDeviceProvider * provider)
it->device_path, "udev-probed", G_TYPE_BOOLEAN, FALSE, NULL);
device = gst_v4l2_device_provider_probe_device (self, it->device_path, NULL,
props);
gst_structure_free (props);
if (device) {
gst_object_ref_sink (device);