mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 11:45:25 +00:00
camerabin: Fix caps leaks
Fix some caps leaks on unit tests
This commit is contained in:
parent
bbf331fb6b
commit
9a2149cf02
1 changed files with 3 additions and 0 deletions
|
@ -579,6 +579,7 @@ GST_START_TEST (test_video_recording)
|
|||
|
||||
/* Set preview-caps */
|
||||
g_object_set (camera, "preview-caps", preview_caps, NULL);
|
||||
gst_caps_unref (preview_caps);
|
||||
|
||||
/* check that the camera is idle */
|
||||
g_object_get (camera, "idle", &idle, NULL);
|
||||
|
@ -626,6 +627,7 @@ GST_START_TEST (test_video_recording_with_flags)
|
|||
|
||||
/* Set preview-caps */
|
||||
g_object_set (camera, "preview-caps", preview_caps, NULL);
|
||||
gst_caps_unref (preview_caps);
|
||||
|
||||
GST_INFO ("starting capture");
|
||||
g_signal_emit_by_name (camera, "capture-start", NULL);
|
||||
|
@ -712,6 +714,7 @@ GST_START_TEST (test_video_recording_no_audio)
|
|||
|
||||
/* Set preview-caps */
|
||||
g_object_set (camera, "preview-caps", preview_caps, NULL);
|
||||
gst_caps_unref (preview_caps);
|
||||
|
||||
GST_INFO ("starting capture");
|
||||
g_signal_emit_by_name (camera, "capture-start", NULL);
|
||||
|
|
Loading…
Reference in a new issue