summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoruau <uau@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-02-24 07:28:07 +0000
committeruau <uau@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-02-24 07:28:07 +0000
commit46c3f0385385971eecfa8413ba3005271ab1ab49 (patch)
tree3529d0e8ee934ce07d239c3a48c8b66c9c294cd3
parente5ab09bb64448e8d60f081891fb85d742c83c9a0 (diff)
downloadmpv-46c3f0385385971eecfa8413ba3005271ab1ab49.tar.bz2
mpv-46c3f0385385971eecfa8413ba3005271ab1ab49.tar.xz
Remove some #if 0 code
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@22331 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r--fifo.c35
-rw-r--r--help/help_mp-en.h1
-rw-r--r--mplayer.c30
3 files changed, 0 insertions, 66 deletions
diff --git a/fifo.c b/fifo.c
index e43f0649e3..bf365f66b4 100644
--- a/fifo.c
+++ b/fifo.c
@@ -1,39 +1,5 @@
#include "input/mouse.h"
-#if 0
-
-// keyboard:
-static int keyb_fifo_put=-1;
-static int keyb_fifo_get=-1;
-
-static void set_nonblock_flag(int fd) {
- int oldflags;
-
- oldflags = fcntl(fd, F_GETFL, 0);
- if (oldflags != -1) {
- if (fcntl(keyb_fifo_put, F_SETFL, oldflags | O_NONBLOCK) != -1) {
- return;
- }
- }
- mp_msg(MSGT_INPUT,MSGL_ERR,"Cannot set nonblocking mode for fd %d!\n", fd);
-}
-
-static void make_pipe(int* pr,int* pw){
- int temp[2];
- if(pipe(temp)!=0) mp_msg(MSGT_FIXME, MSGL_FIXME, MSGTR_CannotMakePipe);
- *pr=temp[0];
- *pw=temp[1];
- set_nonblock_flag(temp[1]);
-}
-
-static void mplayer_put_key_internal(int code){
-
- if( write(keyb_fifo_put,&code,4) != 4 ){
- mp_msg(MSGT_INPUT,MSGL_ERR,"*** key event dropped (FIFO is full) ***\n");
- }
-}
-
-#else
int key_fifo_size = 7;
static int *key_fifo_data = NULL;
@@ -66,7 +32,6 @@ int mplayer_get_key(int fd){
return key;
}
-#endif
static unsigned doubleclick_time = 300;
diff --git a/help/help_mp-en.h b/help/help_mp-en.h
index 4e424fb348..4bdbf0d229 100644
--- a/help/help_mp-en.h
+++ b/help/help_mp-en.h
@@ -165,7 +165,6 @@ static char help_text[]=
#define MSGTR_MenuInitFailed "Menu init failed.\n"
#define MSGTR_Getch2InitializedTwice "WARNING: getch2_init called twice!\n"
#define MSGTR_DumpstreamFdUnavailable "Cannot dump this stream - no file descriptor available.\n"
-#define MSGTR_FallingBackOnPlaylist "Falling back on trying to parse playlist %s...\n"
#define MSGTR_CantOpenLibmenuFilterWithThisRootMenu "Can't open libmenu video filter with root menu %s.\n"
#define MSGTR_AudioFilterChainPreinitError "Error at audio filter chain pre-init!\n"
#define MSGTR_LinuxRTCReadError "Linux RTC read error: %s\n"
diff --git a/mplayer.c b/mplayer.c
index 922b36c986..c17d551afa 100644
--- a/mplayer.c
+++ b/mplayer.c
@@ -2586,14 +2586,7 @@ if(!codecs_file || !parse_codec_cfg(codecs_file)){
// Init input system
current_module = "init_input";
mp_input_init(use_gui);
-#if 0
-make_pipe(&keyb_fifo_get,&keyb_fifo_put);
-
-if(keyb_fifo_get > 0)
- mp_input_add_key_fd(keyb_fifo_get,1,NULL,NULL);
-#else
mp_input_add_key_fd(-1,0,mplayer_get_key,NULL);
-#endif
if(slave_mode)
#ifndef __MINGW32__
mp_input_add_cmd_fd(0,1,NULL,NULL);
@@ -3008,30 +3001,7 @@ if (mpctx->demuxer && mpctx->demuxer->type==DEMUXER_TYPE_PLAYLIST)
}
if(!mpctx->demuxer)
-{
-#if 0
- play_tree_t* entry;
- // Handle playlist
- current_module="handle_playlist";
- switch(mpctx->stream->type){
- case STREAMTYPE_VCD:
- case STREAMTYPE_DVD:
- case STREAMTYPE_CDDA:
- case STREAMTYPE_VCDBINCUE:
- // don't try to parse raw media as playlist, it's unlikely
- goto goto_next_file;
- }
- mp_msg(MSGT_CPLAYER,MSGL_INFO,MSGTR_FallingBackOnPlaylist,filename);
- stream_reset(mpctx->stream);
- stream_seek(mpctx->stream,mpctx->stream->start_pos);
- entry = parse_playtree(mpctx->stream,0);
- if(!entry)
- mp_msg(MSGT_DEMUXER,MSGL_ERR,MSGTR_FormatNotRecognized);
- else
- eof=playtree_add_playlist(entry);
-#endif
goto goto_next_file;
-}
inited_flags|=INITED_DEMUXER;
if (mpctx->stream->type != STREAMTYPE_DVD && mpctx->stream->type != STREAMTYPE_DVDNAV) {