diff -r 265cdb1c59e3 -r e9c12410bfaa gst-plugins-mythtv/gstmythtvsrc.c --- a/gst-plugins-mythtv/gstmythtvsrc.c Thu Sep 21 00:05:27 2006 +0100 +++ b/gst-plugins-mythtv/gstmythtvsrc.c Thu Sep 21 21:48:02 2006 +0100 @@ -39,7 +39,7 @@ #define MYTHTV_TRANSFER_MAX_BUFFER ( 32*1024 ) /* 4*1024 ??? */ -#define MAX_READ_SIZE ( 32*1024 ) +#define MAX_READ_SIZE ( 16*1024 ) #define ENABLE_TIMING_POSITION 1 @@ -369,9 +369,9 @@ #if ENABLE_TIMING_POSITION == 1 if (src->live_tv == TRUE) { - g_usleep( 1000 ); + //g_usleep( 1000 ); get_file_pos: - g_usleep( 100 ); + //g_usleep( 100 ); size_tmp = myth_file_transfer_get_file_position( src->file_transfer ); if ( size_tmp > ( src->content_size + MYTHTV_TRANSFER_MAX_BUFFER ) ) src->content_size = size_tmp; @@ -393,11 +393,11 @@ return ret; eos: #if ENABLE_TIMING_POSITION == 1 - if (src->live_tv == TRUE) { - g_usleep( 1000 ); + if ( src->live_tv == TRUE ) { + //g_usleep( 1000 ); guint64 size_tmp = 0; get_file_pos_eos: - g_usleep( 100 ); + //g_usleep( 100 ); size_tmp = myth_file_transfer_get_file_position( src->file_transfer ); if ( size_tmp > ( src->content_size + MYTHTV_TRANSFER_MAX_BUFFER ) ) src->content_size = size_tmp; @@ -589,10 +589,11 @@ src = GST_MYTHTV_SRC (bsrc); #if ENABLE_TIMING_POSITION == 1 + guint64 size_tmp = 0; if (src->live_tv == TRUE) { get_file_pos: - g_usleep( 100 ); - guint64 size_tmp = myth_file_transfer_get_file_position( src->file_transfer ); + //g_usleep( 100 ); + size_tmp = myth_file_transfer_get_file_position( src->file_transfer ); if ( size_tmp > ( src->content_size + MYTHTV_TRANSFER_MAX_BUFFER ) ) src->content_size = size_tmp; else