[cheese/camerabin2: 14/23] libcheese: split cheese_camera_set_new_caps from cheese_camera_play
- From: Luciana Fujii Pontello <lufujii src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [cheese/camerabin2: 14/23] libcheese: split cheese_camera_set_new_caps from cheese_camera_play
- Date: Mon, 27 Aug 2012 03:30:07 +0000 (UTC)
commit 6867b95440b633931b8ec14e671485fb5b9b2e1e
Author: Raluca Elena Podiuc <ralucaelena1985 gmail com>
Date: Thu Jul 28 23:20:09 2011 +0300
libcheese: split cheese_camera_set_new_caps from cheese_camera_play
libcheese/cheese-camera.c | 11 +++++++++--
1 files changed, 9 insertions(+), 2 deletions(-)
---
diff --git a/libcheese/cheese-camera.c b/libcheese/cheese-camera.c
index 557e3b7..0d8a66a 100644
--- a/libcheese/cheese-camera.c
+++ b/libcheese/cheese-camera.c
@@ -697,8 +697,9 @@ cheese_camera_switch_camera_device (CheeseCamera *camera)
* Set the state of the GStreamer pipeline associated with the #CheeseCamera to
* playing.
*/
-void
-cheese_camera_play (CheeseCamera *camera)
+
+static void
+cheese_camera_set_new_caps (CheeseCamera *camera)
{
CheeseCameraPrivate *priv;
CheeseCameraDevice *device;
@@ -725,7 +726,13 @@ cheese_camera_play (CheeseCamera *camera)
g_object_set (priv->camerabin, "viewfinder-caps", caps, NULL);
}
gst_caps_unref (caps);
+}
+void
+cheese_camera_play (CheeseCamera *camera)
+{
+ CheeseCameraPrivate *priv = CHEESE_CAMERA_GET_PRIVATE (camera);
+ cheese_camera_set_new_caps (camera);
gst_element_set_state (priv->camerabin, GST_STATE_PLAYING);
priv->pipeline_is_playing = TRUE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]