mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-23 15:48:23 +00:00
camerabin: use gst_object_ref to make it easier to track refs
Helps debugging
This commit is contained in:
parent
34b90db967
commit
455baef448
1 changed files with 2 additions and 2 deletions
|
@ -2031,7 +2031,7 @@ gst_camera_bin_set_audio_src (GstCameraBin2 * camera, GstElement * src)
|
|||
g_object_unref (camera->user_audio_src);
|
||||
|
||||
if (src)
|
||||
g_object_ref (src);
|
||||
gst_object_ref (src);
|
||||
camera->user_audio_src = src;
|
||||
}
|
||||
|
||||
|
@ -2045,7 +2045,7 @@ gst_camera_bin_set_camera_src (GstCameraBin2 * camera, GstElement * src)
|
|||
g_object_unref (camera->user_src);
|
||||
|
||||
if (src)
|
||||
g_object_ref (src);
|
||||
gst_object_ref (src);
|
||||
camera->user_src = src;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue