# HG changeset patch # User morphbr # Date 1188398011 -3600 # Node ID 7d4d7535146148f0fa1ec7150bb51bce22ddfdb3 # Parent daa61fffb8118f0a7eef05ccdce546566f1fa2dc [svn r839] - Update size of buffer for livetv inside gstmythtvsrc diff -r daa61fffb811 -r 7d4d75351461 gst-gmyth/mythsrc/gstmythtvsrc.c --- a/gst-gmyth/mythsrc/gstmythtvsrc.c Wed Aug 29 14:42:10 2007 +0100 +++ b/gst-gmyth/mythsrc/gstmythtvsrc.c Wed Aug 29 15:33:31 2007 +0100 @@ -87,7 +87,8 @@ #define GMYTHTV_TRANSFER_MAX_WAITS 100 #define GMYTHTV_TRANSFER_MAX_RESENDS 2 #define GMYTHTV_TRANSFER_MAX_BUFFER (128*1024) -#define READ_SIZE (100*1024) +#define READ_SIZE (8*1024) +#define READ_SIZE_LIVETV (50*1024) #define GST_FLOW_ERROR_NO_DATA (-101) static const GstElementDetails gst_mythtv_src_details = @@ -407,7 +408,11 @@ src = GST_MYTHTV_SRC(psrc); buffer = g_byte_array_new (); - result = do_read_request_response(src, READ_SIZE, buffer); + if (src->live_tv) + result = do_read_request_response(src, READ_SIZE_LIVETV, buffer); + else + result = do_read_request_response(src, READ_SIZE, buffer); + if (result == GMYTH_FILE_READ_ERROR) goto read_error;