comparison mencoder.c @ 7881:aba9301ed3c4

allow cache to be disabled (-nocache should override cachesize autodetection in stream layer)
author arpi
date Wed, 23 Oct 2002 22:07:29 +0000
parents 3dc0b71630ff
children b9da278e4c92
comparison
equal deleted inserted replaced
7880:5bb4d8801a2c 7881:aba9301ed3c4
75 int vo_config_count=0; 75 int vo_config_count=0;
76 76
77 //-------------------------- 77 //--------------------------
78 78
79 // cache2: 79 // cache2:
80 int stream_cache_size=0; 80 int stream_cache_size=-1;
81 #ifdef USE_STREAM_CACHE 81 #ifdef USE_STREAM_CACHE
82 extern int cache_fill_status; 82 extern int cache_fill_status;
83 #else 83 #else
84 #define cache_fill_status 0 84 #define cache_fill_status 0
85 #endif 85 #endif
444 } 444 }
445 mp_msg(MSGT_CPLAYER,MSGL_INFO,MSGTR_DVDauthOk); 445 mp_msg(MSGT_CPLAYER,MSGL_INFO,MSGTR_DVDauthOk);
446 } 446 }
447 #endif 447 #endif
448 448
449 if(stream_cache_size) stream_enable_cache(stream,stream_cache_size*1024,0,0); 449 if(stream_cache_size>0) stream_enable_cache(stream,stream_cache_size*1024,0,0);
450 450
451 if(demuxer2) audio_id=-2; /* do NOT read audio packets... */ 451 if(demuxer2) audio_id=-2; /* do NOT read audio packets... */
452 452
453 //demuxer=demux_open(stream,file_format,video_id,audio_id,dvdsub_id); 453 //demuxer=demux_open(stream,file_format,video_id,audio_id,dvdsub_id);
454 demuxer=demux_open(stream,file_format,audio_id,video_id,dvdsub_id); 454 demuxer=demux_open(stream,file_format,audio_id,video_id,dvdsub_id);