[svn r297] Moved the sync (sleep) calls from GStreamer MythTV source plug-in to the gmtyh. trunk
authorrosfran
Wed Jan 24 14:51:46 2007 +0000 (2007-01-24)
branchtrunk
changeset 296346b67519f6d
parent 295 dbe90c54acdf
child 297 c81bc5ed0ccb
[svn r297] Moved the sync (sleep) calls from GStreamer MythTV source plug-in to the gmtyh.
gmyth/src/gmyth_livetv.c
     1.1 --- a/gmyth/src/gmyth_livetv.c	Wed Jan 24 14:48:47 2007 +0000
     1.2 +++ b/gmyth/src/gmyth_livetv.c	Wed Jan 24 14:51:46 2007 +0000
     1.3 @@ -327,7 +327,7 @@
     1.4  	
     1.5  		}
     1.6  		
     1.7 -    sleep (6);                  /* FIXME: this is evil (tpm) */
     1.8 +    sleep (9);                  /* FIXME: this is evil (tpm) */
     1.9    }
    1.10  
    1.11  	// Reload all TV chain from Mysql database.
    1.12 @@ -349,6 +349,18 @@
    1.13  		gmyth_debug ("GMythLiveTV: All requests to backend to start TV were OK. [%s]\n", livetv->proginfo->pathname->str );
    1.14  	}
    1.15  	
    1.16 + if ( res == TRUE) {
    1.17 +    /* loop finished, set the max tries variable to zero again... */
    1.18 +    gint wait_to_transfer = GMYTHTV_TRANSFER_MAX_WAITS;
    1.19 +
    1.20 +    g_usleep (200);
    1.21 +
    1.22 +    while (wait_to_transfer-- > 0 &&
    1.23 +        (gmyth_recorder_is_recording (livetv->recorder) == FALSE))
    1.24 +      g_usleep (1000);
    1.25 +  }
    1.26 +
    1.27 +	
    1.28  	g_static_mutex_unlock( &lock );
    1.29  
    1.30  	if ( !gmyth_livetv_monitor_handler_start( livetv ) )