[longomatch] gst-camera-capturer: fix windows compilation and some refcounts
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch] gst-camera-capturer: fix windows compilation and some refcounts
- Date: Fri, 5 Oct 2012 23:53:14 +0000 (UTC)
commit 18dc00e9a8b844affafc9171cf323aedb031c003
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date: Sat Oct 6 01:49:44 2012 +0200
gst-camera-capturer: fix windows compilation and some refcounts
libcesarplayer/gst-camera-capturer.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/libcesarplayer/gst-camera-capturer.c b/libcesarplayer/gst-camera-capturer.c
index 47644d0..ddc0bd5 100644
--- a/libcesarplayer/gst-camera-capturer.c
+++ b/libcesarplayer/gst-camera-capturer.c
@@ -939,6 +939,7 @@ cb_new_pad (GstElement * element, GstPad * pad, GstCameraCapturer *gcc)
epad = gst_element_get_static_pad(sink, "sink");
gst_pad_link (pad, epad);
gst_object_unref(epad);
+ gst_object_unref (sink);
}
gst_caps_unref(caps);
}
@@ -1580,6 +1581,9 @@ gst_camera_capturer_create_video_source (GstCameraCapturer * gcc,
GST_INFO_OBJECT(gcc, "Created video source %s", source_desc);
+ gst_object_unref (gcc->priv->source);
+ gst_object_unref (typefind);
+
return TRUE;
}
@@ -2297,7 +2301,7 @@ gst_camera_capturer_stop (GstCameraCapturer * gcc)
//supports it. When a device is disconnected, the source is locked
//in ::create(), blocking the streaming thread. We need to change its
//state to null, this way camerabin doesn't block in ::do_stop().
- gst_element_set_state(gcc->priv->device_source, GST_STATE_NULL);
+ gst_element_set_state(gcc->priv->source, GST_STATE_NULL);
#endif
GST_INFO_OBJECT(gcc, "Closing capture");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]