[frogr] Avoid declaring unused variable when not using GSTREAMER
- From: Mario Sanchez Prada <msanchez src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [frogr] Avoid declaring unused variable when not using GSTREAMER
- Date: Thu, 19 Dec 2013 22:41:51 +0000 (UTC)
commit fbf83edadbba3c05abb6766201cb9f226b7c38c6
Author: Mario Sanchez Prada <msanchez gnome org>
Date: Thu Dec 19 22:41:42 2013 +0000
Avoid declaring unused variable when not using GSTREAMER
src/main.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/main.c b/src/main.c
index 0f57582..0807126 100644
--- a/src/main.c
+++ b/src/main.c
@@ -34,10 +34,10 @@ int
main (int argc, char **argv)
{
FrogrController *controller = NULL;
- GError *error = NULL;
int status;
-
#ifdef HAVE_GSTREAMER
+ GError *error = NULL;
+
/* Initialize gstreamer before using any other GLib function */
gst_init_check (&argc, &argv, &error);
if (error)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]