mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-02 21:48:55 +00:00
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:
parent
496137854b
commit
d34910bf30
1 changed files with 0 additions and 1 deletions
|
@ -198,7 +198,6 @@ gst_v4l2_device_provider_probe (GstDeviceProvider * provider)
|
||||||
it->device_path, "udev-probed", G_TYPE_BOOLEAN, FALSE, NULL);
|
it->device_path, "udev-probed", G_TYPE_BOOLEAN, FALSE, NULL);
|
||||||
device = gst_v4l2_device_provider_probe_device (self, it->device_path, NULL,
|
device = gst_v4l2_device_provider_probe_device (self, it->device_path, NULL,
|
||||||
props);
|
props);
|
||||||
gst_structure_free (props);
|
|
||||||
|
|
||||||
if (device) {
|
if (device) {
|
||||||
gst_object_ref_sink (device);
|
gst_object_ref_sink (device);
|
||||||
|
|
Loading…
Reference in a new issue