# HG changeset patch # User rosfran # Date 1158794856 -3600 # Node ID 62b5ba7616f88d0084d36b26d348040d37819d63 # Parent 259b9773e5c307fcd37d3fa5c185cf7736dda55f [svn r6] The first change on Sourceforge SVN! diff -r 259b9773e5c3 -r 62b5ba7616f8 gst-plugins-mythtv/gstmythtvsrc.c --- a/gst-plugins-mythtv/gstmythtvsrc.c Thu Sep 21 00:15:52 2006 +0100 +++ b/gst-plugins-mythtv/gstmythtvsrc.c Thu Sep 21 00:27:36 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