# HG changeset patch # User rosfran # Date 1169650306 0 # Node ID 346b67519f6dbbed3961d0c53ad892db1a43623f # Parent dbe90c54acdf92aa92d4d045a6053192d88a1ea1 [svn r297] Moved the sync (sleep) calls from GStreamer MythTV source plug-in to the gmtyh. diff -r dbe90c54acdf -r 346b67519f6d gmyth/src/gmyth_livetv.c --- a/gmyth/src/gmyth_livetv.c Wed Jan 24 14:48:47 2007 +0000 +++ b/gmyth/src/gmyth_livetv.c Wed Jan 24 14:51:46 2007 +0000 @@ -327,7 +327,7 @@ } - sleep (6); /* FIXME: this is evil (tpm) */ + sleep (9); /* FIXME: this is evil (tpm) */ } // Reload all TV chain from Mysql database. @@ -349,6 +349,18 @@ gmyth_debug ("GMythLiveTV: All requests to backend to start TV were OK. [%s]\n", livetv->proginfo->pathname->str ); } + if ( res == TRUE) { + /* loop finished, set the max tries variable to zero again... */ + gint wait_to_transfer = GMYTHTV_TRANSFER_MAX_WAITS; + + g_usleep (200); + + while (wait_to_transfer-- > 0 && + (gmyth_recorder_is_recording (livetv->recorder) == FALSE)) + g_usleep (1000); + } + + g_static_mutex_unlock( &lock ); if ( !gmyth_livetv_monitor_handler_start( livetv ) )