changeset 22313:5a5c7529e8a3

Remove some #if 0 code
author uau
date Sat, 24 Feb 2007 07:28:07 +0000
parents cca9ff25bed2
children ead0275fdc2c
files fifo.c help/help_mp-en.h mplayer.c
diffstat 3 files changed, 0 insertions(+), 66 deletions(-) [+]
line wrap: on
line diff
--- a/fifo.c	Sat Feb 24 07:11:57 2007 +0000
+++ b/fifo.c	Sat Feb 24 07:28:07 2007 +0000
@@ -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 @@
   return key;
 }
 
-#endif
 
 static unsigned doubleclick_time = 300;
 
--- a/help/help_mp-en.h	Sat Feb 24 07:11:57 2007 +0000
+++ b/help/help_mp-en.h	Sat Feb 24 07:28:07 2007 +0000
@@ -165,7 +165,6 @@
 #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"
--- a/mplayer.c	Sat Feb 24 07:11:57 2007 +0000
+++ b/mplayer.c	Sat Feb 24 07:28:07 2007 +0000
@@ -2586,14 +2586,7 @@
 // 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) 
-{
-#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) {