mirror of
https://github.com/mpv-player/mpv
synced 2025-04-11 04:01:31 +00:00
stop fixed, fileselector supp. maybe not work, couldn't test
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1788 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
f575265bda
commit
88702b7437
21
mplayer.c
21
mplayer.c
@ -434,6 +434,8 @@ int v_saturation=50;
|
|||||||
int i;
|
int i;
|
||||||
int use_stdin=0; //int f; // filedes
|
int use_stdin=0; //int f; // filedes
|
||||||
|
|
||||||
|
int gui_no_filename=0;
|
||||||
|
|
||||||
mp_msg_init(MSGL_STATUS);
|
mp_msg_init(MSGL_STATUS);
|
||||||
|
|
||||||
mp_msg(MSGT_CPLAYER,MSGL_INFO,"%s",banner_text);
|
mp_msg(MSGT_CPLAYER,MSGL_INFO,"%s",banner_text);
|
||||||
@ -484,10 +486,12 @@ int use_stdin=0; //int f; // filedes
|
|||||||
exit(0);
|
exit(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!num_filenames && !vcd_track && !dvd_title && !use_gui){
|
if(!num_filenames && !vcd_track && !dvd_title){
|
||||||
|
if(!use_gui){
|
||||||
// no file/vcd/dvd -> show HELP:
|
// no file/vcd/dvd -> show HELP:
|
||||||
printf("%s",help_text);
|
printf("%s",help_text);
|
||||||
exit(0);
|
exit(0);
|
||||||
|
} else gui_no_filename=1;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Many users forget to include command line in bugreports...
|
// Many users forget to include command line in bugreports...
|
||||||
@ -572,13 +576,18 @@ if(!parse_codec_cfg(get_path("codecs.conf"))){
|
|||||||
curr_filename=0;
|
curr_filename=0;
|
||||||
play_next_file:
|
play_next_file:
|
||||||
filename=(num_filenames>0)?filenames[curr_filename]:NULL;
|
filename=(num_filenames>0)?filenames[curr_filename]:NULL;
|
||||||
|
|
||||||
#ifdef HAVE_NEW_GUI
|
#ifdef HAVE_NEW_GUI
|
||||||
if ( use_gui )
|
if ( use_gui ) {
|
||||||
{
|
if(filename) strcpy( mplShMem->Filename,filename );
|
||||||
strcpy( mplShMem->Filename,filename );
|
mplShMem->Playing= (gui_no_filename) ? 0 : 1;
|
||||||
mplShMem->Playing=1;
|
while(mplShMem->Playing!=1){
|
||||||
}
|
usleep(20000);
|
||||||
|
wsHandleEvents();mplTimerHandler(0); // handle GUI timer events
|
||||||
|
}
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if(filename) mp_msg(MSGT_CPLAYER,MSGL_INFO,"Playing %s\n", filename);
|
if(filename) mp_msg(MSGT_CPLAYER,MSGL_INFO,"Playing %s\n", filename);
|
||||||
|
|
||||||
#ifdef USE_SUB
|
#ifdef USE_SUB
|
||||||
|
Loading…
Reference in New Issue
Block a user