]> pilppa.org Git - familiar-h63xx-build.git/blob - org.handhelds.familiar/packages/libxine/files/libxine-cut-memusage.patch
OE tree imported from monotone branch org.openembedded.oz354fam083 at revision 8b12e3...
[familiar-h63xx-build.git] / org.handhelds.familiar / packages / libxine / files / libxine-cut-memusage.patch
1
2 #
3 # Patch managed by http://www.holgerschurig.de/patcher.html
4 #
5
6 Index: xine-lib-1.0/src/xine-engine/audio_out.c
7 ===================================================================
8 --- xine-lib-1.0.orig/src/xine-engine/audio_out.c       2004-12-19 21:24:30.000000000 +0100
9 +++ xine-lib-1.0/src/xine-engine/audio_out.c    2005-02-16 22:19:25.836765770 +0100
10 @@ -95,10 +95,10 @@
11  #include "metronom.h"
12  
13  
14 -#define NUM_AUDIO_BUFFERS       32
15 -#define AUDIO_BUF_SIZE       32768
16 +#define NUM_AUDIO_BUFFERS       16
17 +#define AUDIO_BUF_SIZE        8192
18  
19 -#define ZERO_BUF_SIZE         5000
20 +#define ZERO_BUF_SIZE         2048
21  
22  /* By adding gap errors (difference between reported and expected
23   * sound card clock) into metronom's vpts_offset we can use its 
24 Index: xine-lib-1.0/src/xine-engine/video_decoder.c
25 ===================================================================
26 --- xine-lib-1.0.orig/src/xine-engine/video_decoder.c   2004-12-16 14:59:06.000000000 +0100
27 +++ xine-lib-1.0/src/xine-engine/video_decoder.c        2005-02-16 22:20:47.104487350 +0100
28 @@ -479,7 +479,7 @@
29    
30      num_buffers = stream->xine->config->register_num (stream->xine->config,
31                                                        "engine.buffers.video_num_buffers",
32 -                                                      500,
33 +                                                      250,
34                                                        _("number of video buffers"),
35                                                       _("The number of video buffers (each is 8k in size) "
36                                                         "xine uses in its internal queue. Higher values "
37 @@ -487,7 +487,7 @@
38                                                         "also increased latency and memory consumption."),
39                                                        20, NULL, NULL);
40    
41 -    stream->video_fifo = _x_fifo_buffer_new (num_buffers, 8192);
42 +    stream->video_fifo = _x_fifo_buffer_new (num_buffers, 4096);
43      stream->spu_track_map_entries = 0;
44    
45      pthread_attr_init(&pth_attrs);
46 Index: xine-lib-1.0/src/xine-engine/video_overlay.h
47 ===================================================================
48 --- xine-lib-1.0.orig/src/xine-engine/video_overlay.h   2004-12-08 19:18:24.000000000 +0100
49 +++ xine-lib-1.0/src/xine-engine/video_overlay.h        2005-02-16 22:19:25.837765631 +0100
50 @@ -36,7 +36,7 @@
51  #define CLUT_Y_CR_CB_INIT(_y,_cr,_cb)  { (_cb), (_cr), (_y) }
52  #endif
53  
54 -#define MAX_OBJECTS   50
55 +#define MAX_OBJECTS    5
56  #define MAX_EVENTS    50
57  #define MAX_SHOWING   16
58  
59 Index: xine-lib-1.0/src/xine-engine/audio_decoder.c
60 ===================================================================
61 --- xine-lib-1.0.orig/src/xine-engine/audio_decoder.c   2004-12-16 14:59:06.000000000 +0100
62 +++ xine-lib-1.0/src/xine-engine/audio_decoder.c        2005-02-16 22:21:42.846730591 +0100
63 @@ -462,7 +462,7 @@
64      
65      num_buffers = stream->xine->config->register_num (stream->xine->config,
66                                                        "engine.buffers.audio_num_buffers",
67 -                                                      230,
68 +                                                      100,
69                                                        _("number of audio buffers"),
70                                                       _("The number of audio buffers (each is 8k in size) "
71                                                         "xine uses in its internal queue. Higher values "