gst-plugins-mythtv/gstmythtvsrc.c
branchtrunk
changeset 6 051875c9e136
parent 3 265cdb1c59e3
     1.1 --- a/gst-plugins-mythtv/gstmythtvsrc.c	Thu Sep 21 00:05:27 2006 +0100
     1.2 +++ b/gst-plugins-mythtv/gstmythtvsrc.c	Thu Sep 21 00:33:03 2006 +0100
     1.3 @@ -39,7 +39,7 @@
     1.4  #define MYTHTV_TRANSFER_MAX_BUFFER	( 32*1024  )
     1.5  
     1.6  /* 4*1024 ??? */
     1.7 -#define MAX_READ_SIZE                   ( 32*1024 )
     1.8 +#define MAX_READ_SIZE                   ( 16*1024 )
     1.9  
    1.10  #define ENABLE_TIMING_POSITION		1
    1.11  
    1.12 @@ -369,9 +369,9 @@
    1.13  
    1.14  #if ENABLE_TIMING_POSITION == 1
    1.15    if (src->live_tv == TRUE) {
    1.16 -    g_usleep( 1000 );
    1.17 +    //g_usleep( 1000 );
    1.18  get_file_pos:
    1.19 -    g_usleep( 100 );
    1.20 +    //g_usleep( 100 );
    1.21      size_tmp = myth_file_transfer_get_file_position( src->file_transfer );
    1.22      if ( size_tmp > ( src->content_size + MYTHTV_TRANSFER_MAX_BUFFER ) )
    1.23        src->content_size = size_tmp;
    1.24 @@ -393,11 +393,11 @@
    1.25    return ret;
    1.26  eos:
    1.27  #if ENABLE_TIMING_POSITION == 1
    1.28 -  if (src->live_tv == TRUE) {
    1.29 -    g_usleep( 1000 );
    1.30 +  if ( src->live_tv == TRUE ) {
    1.31 +    //g_usleep( 1000 );
    1.32      guint64 size_tmp = 0;
    1.33  get_file_pos_eos:
    1.34 -    g_usleep( 100 );
    1.35 +    //g_usleep( 100 );
    1.36      size_tmp = myth_file_transfer_get_file_position( src->file_transfer );
    1.37      if ( size_tmp > ( src->content_size + MYTHTV_TRANSFER_MAX_BUFFER ) )
    1.38        src->content_size = size_tmp;
    1.39 @@ -589,10 +589,11 @@
    1.40  
    1.41    src = GST_MYTHTV_SRC (bsrc);
    1.42  #if ENABLE_TIMING_POSITION == 1
    1.43 +  guint64 size_tmp = 0; 
    1.44    if (src->live_tv == TRUE) {
    1.45  get_file_pos:
    1.46 -    g_usleep( 100 );
    1.47 -    guint64 size_tmp = myth_file_transfer_get_file_position( src->file_transfer );
    1.48 +    //g_usleep( 100 );
    1.49 +    size_tmp = myth_file_transfer_get_file_position( src->file_transfer );
    1.50      if ( size_tmp > ( src->content_size + MYTHTV_TRANSFER_MAX_BUFFER ) )
    1.51        src->content_size = size_tmp;
    1.52      else