[svn r839] - Update size of buffer for livetv inside gstmythtvsrc trunk
authormorphbr
Wed Aug 29 15:33:31 2007 +0100 (2007-08-29)
branchtrunk
changeset 8337d4d75351461
parent 832 daa61fffb811
child 834 56d4eb2b5514
[svn r839] - Update size of buffer for livetv inside gstmythtvsrc
gst-gmyth/mythsrc/gstmythtvsrc.c
     1.1 --- a/gst-gmyth/mythsrc/gstmythtvsrc.c	Wed Aug 29 14:42:10 2007 +0100
     1.2 +++ b/gst-gmyth/mythsrc/gstmythtvsrc.c	Wed Aug 29 15:33:31 2007 +0100
     1.3 @@ -87,7 +87,8 @@
     1.4  #define GMYTHTV_TRANSFER_MAX_WAITS          100
     1.5  #define GMYTHTV_TRANSFER_MAX_RESENDS        2
     1.6  #define GMYTHTV_TRANSFER_MAX_BUFFER         (128*1024)
     1.7 -#define READ_SIZE                           (100*1024)
     1.8 +#define READ_SIZE                           (8*1024)
     1.9 +#define READ_SIZE_LIVETV                    (50*1024)
    1.10  #define GST_FLOW_ERROR_NO_DATA              (-101)
    1.11  
    1.12  static const GstElementDetails gst_mythtv_src_details =
    1.13 @@ -407,7 +408,11 @@
    1.14      src = GST_MYTHTV_SRC(psrc);
    1.15  
    1.16      buffer = g_byte_array_new ();
    1.17 -    result = do_read_request_response(src, READ_SIZE, buffer);
    1.18 +    if (src->live_tv)
    1.19 +        result = do_read_request_response(src, READ_SIZE_LIVETV, buffer);
    1.20 +    else
    1.21 +        result = do_read_request_response(src, READ_SIZE, buffer);
    1.22 +
    1.23      if (result == GMYTH_FILE_READ_ERROR)
    1.24          goto read_error;
    1.25