[cheese] Move variable declarations before code in C source
- From: David King <davidk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [cheese] Move variable declarations before code in C source
- Date: Mon, 3 Sep 2012 20:00:07 +0000 (UTC)
commit da4d2d695c876835d39d0a75fe4b2a0f74fb6ab9
Author: David King <amigadave amigadave com>
Date: Fri Mar 9 17:50:52 2012 +0000
Move variable declarations before code in C source
This allows compilation to succeed with
â-Werror=declaration-after-statementâ passed to GCC.
libcheese/cheese-camera.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/libcheese/cheese-camera.c b/libcheese/cheese-camera.c
index 53705f7..6874858 100644
--- a/libcheese/cheese-camera.c
+++ b/libcheese/cheese-camera.c
@@ -1766,8 +1766,6 @@ cheese_camera_set_balance_property (CheeseCamera *camera, const gchar *property,
gchar *
cheese_camera_get_recorded_time (CheeseCamera *camera)
{
- g_return_val_if_fail (CHEESE_IS_CAMERA (camera), NULL);
-
CheeseCameraPrivate *priv = camera->priv;
GstFormat format = GST_FORMAT_TIME;
gint64 curtime;
@@ -1779,6 +1777,8 @@ cheese_camera_get_recorded_time (CheeseCamera *camera)
gint seconds;
gboolean ret = FALSE;
+ g_return_val_if_fail (CHEESE_IS_CAMERA (camera), NULL);
+
videosink = gst_bin_get_by_name (GST_BIN_CAST (priv->camerabin), "videobin-filesink");
if (videosink) {
ret = gst_element_query_position (videosink, format, &curtime);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]