[cheese] Fix leaks in cheese_camera_set_video_recording()
- From: David King <davidk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [cheese] Fix leaks in cheese_camera_set_video_recording()
- Date: Thu, 14 Nov 2013 19:36:33 +0000 (UTC)
commit c21117bc111f0c7d74c82dc040d449734d1564d0
Author: David King <amigadave amigadave com>
Date: Thu Nov 14 15:20:58 2013 +0000
Fix leaks in cheese_camera_set_video_recording()
libcheese/cheese-camera.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/libcheese/cheese-camera.c b/libcheese/cheese-camera.c
index 8873194..af2d603 100644
--- a/libcheese/cheese-camera.c
+++ b/libcheese/cheese-camera.c
@@ -496,18 +496,22 @@ cheese_camera_set_video_recording (CheeseCamera *camera, GError **error)
prof = gst_encoding_container_profile_new("WebM audio/video",
"Standard WebM/VP8/Vorbis",
caps, NULL);
+ gst_caps_unref (caps);
caps = gst_caps_from_string("video/x-vp8");
v_prof = gst_encoding_video_profile_new(caps, NULL, NULL, 0);
gst_encoding_video_profile_set_variableframerate(v_prof, TRUE);
gst_encoding_profile_set_preset((GstEncodingProfile*) v_prof, video_preset);
gst_encoding_container_profile_add_profile(prof, (GstEncodingProfile*) v_prof);
+ gst_caps_unref (caps);
caps = gst_caps_from_string("audio/x-vorbis");
gst_encoding_container_profile_add_profile(prof,
(GstEncodingProfile*) gst_encoding_audio_profile_new(caps, NULL, NULL, 0));
+ gst_caps_unref (caps);
g_object_set (priv->camerabin, "video-profile", prof, NULL);
+ gst_encoding_profile_unref (prof);
}
/*
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]