From a1b2501e201da722d69e8bf5cf807ea5f48505a0 Mon Sep 17 00:00:00 2001 From: jait Date: Fri, 12 Mar 2010 14:25:37 +0000 Subject: [PATCH] add FAKE_FREQUENCY macro to switch it on/off git-svn-id: file:///svnroot/tunertool/trunk@52 4bb5ff34-d565-4b58-9699-12000fa1827a --- src/tuner.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/tuner.c b/src/tuner.c index 102b8d8..2110e24 100644 --- a/src/tuner.c +++ b/src/tuner.c @@ -1,6 +1,7 @@ /* vim: set sts=2 sw=2 et: */ /* Tuner * Copyright (C) 2006 Josep Torra + * 2008-2009 Jari Tenhunen * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public @@ -485,6 +486,7 @@ stop_pipelines (gpointer user_data) return FALSE; } +#ifdef FAKE_FREQUENCY static gboolean fake_frequency (gpointer user_data) { @@ -494,6 +496,7 @@ fake_frequency (gpointer user_data) return TRUE; } +#endif #ifdef MAEMO static void @@ -888,7 +891,9 @@ main (int argc, char *argv[]) set_pipeline_states (appdata, GST_STATE_PLAYING); - //g_timeout_add (2000, (GSourceFunc) fake_frequency, appdata); +#ifdef FAKE_FREQUENCY + g_timeout_add (2000, (GSourceFunc) fake_frequency, appdata); +#endif gtk_main (); -- 1.7.9.5