[longomatch] Set camerabin source in the set_source() function
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch] Set camerabin source in the set_source() function
- Date: Wed, 9 Jun 2010 19:59:36 +0000 (UTC)
commit d0f63fea315ace15d496cd5c154441fd4a310988
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date: Wed Jun 9 21:58:13 2010 +0200
Set camerabin source in the set_source() function
libcesarplayer/src/gst-camera-capturer.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/libcesarplayer/src/gst-camera-capturer.c b/libcesarplayer/src/gst-camera-capturer.c
index c038b55..d894e5e 100644
--- a/libcesarplayer/src/gst-camera-capturer.c
+++ b/libcesarplayer/src/gst-camera-capturer.c
@@ -1016,6 +1016,9 @@ gst_camera_capturer_set_source (GstCameraCapturer * gcc,
return FALSE;
}
+ g_object_set (gcc->priv->camerabin, "video-source", gcc->priv->videosrc,
+ NULL);
+
/* Install pad probe to store the last buffer */
videosrcpad = gst_element_get_pad (gcc->priv->videosrc, "src");
gst_pad_add_buffer_probe (videosrcpad,
@@ -1055,8 +1058,6 @@ gst_camera_capturer_new (gchar * filename, GError ** err)
if (*err != NULL) {
return NULL;
}
- g_object_set (gcc->priv->camerabin, "video-source", gcc->priv->videosrc,
- NULL);
GST_INFO_OBJECT (gcc, "Setting capture mode to \"video\"");
g_object_set (gcc->priv->camerabin, "mode", 1, NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]