# HG changeset patch # User rosfran # Date 1164394302 0 # Node ID ce35e2e839f4a34c7ee4a3e93256e66941545a80 # Parent 110d51c175816419f74b66f38e1206cfac6077ce [svn r111] Put the gmyth_livetv calls in the right place... diff -r 110d51c17581 -r ce35e2e839f4 gst-plugins-mythtv/src/gstmythtvsrc.c --- a/gst-plugins-mythtv/src/gstmythtvsrc.c Fri Nov 24 14:55:41 2006 +0000 +++ b/gst-plugins-mythtv/src/gstmythtvsrc.c Fri Nov 24 18:51:42 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__ ); /*