diff -r f2b53549deef -r 7dcc53d63f37 gst-plugins-mythtv/src/gstmythtvsrc.c --- a/gst-plugins-mythtv/src/gstmythtvsrc.c Fri Nov 24 14:54:39 2006 +0000 +++ b/gst-plugins-mythtv/src/gstmythtvsrc.c Fri Nov 24 21:49:40 2006 +0000 @@ -51,7 +51,7 @@ #define GST_FLOW_ERROR_NO_DATA -101 -#define INTERNAL_BUFFER_SIZE 64*1024 +#define INTERNAL_BUFFER_SIZE 40*1024 /* stablish a maximum iteration value to the IS_RECORDING message */ static guint wait_to_transfer = 0; @@ -675,11 +675,14 @@ while ( wait_to_transfer++ < GMYTHTV_TRANSFER_MAX_WAITS && ( gmyth_livetv_is_recording( src->spawn_livetv ) == FALSE ) ) - g_usleep( 100 ); + g_usleep( 500 ); + + /* IS_RECORDING again, just like the MythTV backend does... */ + gmyth_livetv_is_recording( src->spawn_livetv ); + + sleep( 5 ); + } - - //sleep( 30 ); - /* sets the FileTransfer instance connection (video/audio download) */ ret = gmyth_file_transfer_setup( &(src->file_transfer), src->live_tv ); @@ -1044,11 +1047,11 @@ GST_INFO_OBJECT( src, "[%s] PLAYING to PAUSED called!\n", __FUNCTION__ ); case GST_STATE_CHANGE_PAUSED_TO_READY: GST_INFO_OBJECT( src, "[%s] PAUSED to READY called!\n", __FUNCTION__ ); - if ( !gmyth_recorder_send_frontend_ready_command( src->spawn_livetv->recorder ) ) - GST_WARNING_OBJECT( src, "[%s] Couldn't send the FRONTEND_READY message to the backend!", __FUNCTION__ ); - else - GST_DEBUG_OBJECT( src, "[%s] Message FRONTEND_READY was sent to the backend!", __FUNCTION__ ); if ( src->live_tv && src->update_prog_chain ) { + if ( !gmyth_recorder_send_frontend_ready_command( src->spawn_livetv->recorder ) ) + GST_WARNING_OBJECT( src, "[%s] Couldn't send the FRONTEND_READY message to the backend!", __FUNCTION__ ); + else + GST_DEBUG_OBJECT( src, "[%s] Message FRONTEND_READY was sent to the backend!", __FUNCTION__ ); /*