v4l2: Don't free props structure twice.
authorJan Schmidt <jan@centricular.com>
Wed, 20 Jan 2016 07:20:43 +0000 (18:20 +1100)
committerJan Schmidt <jan@centricular.com>
Wed, 20 Jan 2016 07:23:37 +0000 (18:23 +1100)
gst_v4l2_device_provider_probe_device() frees the passed props
structure, don't free it again in the caller.

sys/v4l2/gstv4l2deviceprovider.c

index 399bc13..e606f84 100644 (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);