[svn r111] Put the gmyth_livetv calls in the right place... trunk
authorrosfran
Fri Nov 24 18:51:42 2006 +0000 (2006-11-24)
branchtrunk
changeset 110ce35e2e839f4
parent 109 110d51c17581
child 111 dfa72795bd32
[svn r111] Put the gmyth_livetv calls in the right place...
gst-plugins-mythtv/src/gstmythtvsrc.c
     1.1 --- a/gst-plugins-mythtv/src/gstmythtvsrc.c	Fri Nov 24 14:55:41 2006 +0000
     1.2 +++ b/gst-plugins-mythtv/src/gstmythtvsrc.c	Fri Nov 24 18:51:42 2006 +0000
     1.3 @@ -51,7 +51,7 @@
     1.4  
     1.5  #define GST_FLOW_ERROR_NO_DATA  			-101
     1.6  
     1.7 -#define INTERNAL_BUFFER_SIZE					64*1024
     1.8 +#define INTERNAL_BUFFER_SIZE					40*1024
     1.9  
    1.10  /* stablish a maximum iteration value to the IS_RECORDING message */
    1.11  static guint wait_to_transfer = 0;
    1.12 @@ -675,11 +675,14 @@
    1.13  
    1.14      while ( wait_to_transfer++ < GMYTHTV_TRANSFER_MAX_WAITS &&
    1.15  				( gmyth_livetv_is_recording( src->spawn_livetv ) == FALSE ) )
    1.16 -      g_usleep( 100 );
    1.17 +      g_usleep( 500 );
    1.18 +      
    1.19 +    /* IS_RECORDING again, just like the MythTV backend does... */
    1.20 +	  gmyth_livetv_is_recording( src->spawn_livetv );
    1.21 +	  
    1.22 +	  sleep( 5 );  
    1.23 +
    1.24    }
    1.25 -  
    1.26 -  //sleep( 30 );
    1.27 -
    1.28    /* sets the FileTransfer instance connection (video/audio download) */
    1.29    ret = gmyth_file_transfer_setup( &(src->file_transfer), src->live_tv );
    1.30  
    1.31 @@ -1044,11 +1047,11 @@
    1.32        GST_INFO_OBJECT( src, "[%s] PLAYING to PAUSED called!\n", __FUNCTION__ );
    1.33      case GST_STATE_CHANGE_PAUSED_TO_READY:
    1.34        GST_INFO_OBJECT( src, "[%s] PAUSED to READY called!\n", __FUNCTION__ );
    1.35 -      if ( !gmyth_recorder_send_frontend_ready_command( src->spawn_livetv->recorder ) )
    1.36 -      	GST_WARNING_OBJECT( src, "[%s] Couldn't send the FRONTEND_READY message to the backend!", __FUNCTION__ );
    1.37 -      else
    1.38 -      	GST_DEBUG_OBJECT( src, "[%s] Message FRONTEND_READY was sent to the backend!", __FUNCTION__ );
    1.39        if ( src->live_tv && src->update_prog_chain ) {
    1.40 +	      if ( !gmyth_recorder_send_frontend_ready_command( src->spawn_livetv->recorder ) )
    1.41 +	      	GST_WARNING_OBJECT( src, "[%s] Couldn't send the FRONTEND_READY message to the backend!", __FUNCTION__ );
    1.42 +	      else
    1.43 +	      	GST_DEBUG_OBJECT( src, "[%s] Message FRONTEND_READY was sent to the backend!", __FUNCTION__ );
    1.44        	
    1.45        /*
    1.46