From: jait Date: Fri, 12 Mar 2010 14:25:37 +0000 (+0000) Subject: add FAKE_FREQUENCY macro to switch it on/off X-Git-Tag: fremantle/0.1.3~9 X-Git-Url: http://vcs.maemo.org/git/?p=tunertool;a=commitdiff_plain;h=a1b2501e201da722d69e8bf5cf807ea5f48505a0 add FAKE_FREQUENCY macro to switch it on/off git-svn-id: file:///svnroot/tunertool/trunk@52 4bb5ff34-d565-4b58-9699-12000fa1827a --- 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 ();