Mercurial > mplayer.hg
comparison mplayer.c @ 6699:9fc877cee29a
Only space and 'p' will unpause, other keys will unpause and do their function (eg. seek),
this is a preparation for the pause at eof feature.
author | atmos4 |
---|---|
date | Wed, 10 Jul 2002 13:40:32 +0000 |
parents | f8551f89dd48 |
children | cc917a581b6e |
comparison
equal
deleted
inserted
replaced
6698:ebe660cf5752 | 6699:9fc877cee29a |
---|---|
1889 } | 1889 } |
1890 } | 1890 } |
1891 #endif | 1891 #endif |
1892 | 1892 |
1893 if(osd_function==OSD_PAUSE){ | 1893 if(osd_function==OSD_PAUSE){ |
1894 int pkey=-1; | |
1894 #ifdef HAVE_NEW_INPUT | 1895 #ifdef HAVE_NEW_INPUT |
1895 mp_cmd_t* cmd; | 1896 mp_cmd_t* cmd; |
1896 #endif | 1897 #endif |
1897 if(!quiet) { | 1898 if(!quiet) { |
1898 mp_msg(MSGT_CPLAYER,MSGL_STATUS,"\n------ PAUSED -------\r"); | 1899 mp_msg(MSGT_CPLAYER,MSGL_STATUS,"\n------ PAUSED -------\r"); |
1927 | 1928 |
1928 while( | 1929 while( |
1929 #ifdef HAVE_LIRC | 1930 #ifdef HAVE_LIRC |
1930 lirc_mp_getinput()<=0 && | 1931 lirc_mp_getinput()<=0 && |
1931 #endif | 1932 #endif |
1932 (use_stdin || getch2(20)<=0) && mplayer_get_key()<=0){ | 1933 (use_stdin || getch2(20)<=0) /* && mplayer_get_key()<=0*/){ |
1933 #endif /* HAVE_NEW_INPUT */ | 1934 #endif /* HAVE_NEW_INPUT */ |
1934 if(sh_video && video_out && vo_config_count) video_out->check_events(); | 1935 if(sh_video && video_out && vo_config_count) video_out->check_events(); |
1936 if((pkey=mplayer_get_key()) > 0) break; | |
1935 #ifdef HAVE_NEW_GUI | 1937 #ifdef HAVE_NEW_GUI |
1936 if(use_gui){ | 1938 if(use_gui){ |
1937 guiEventHandling(); | 1939 guiEventHandling(); |
1938 guiGetEvent( guiReDraw,NULL ); | 1940 guiGetEvent( guiReDraw,NULL ); |
1939 if(guiIntfStruct.Playing!=2 || (rel_seek_secs || abs_seek_pos)) break; | 1941 if(guiIntfStruct.Playing!=2 || (rel_seek_secs || abs_seek_pos)) break; |
1959 { | 1961 { |
1960 if ( guiIntfStruct.Playing == guiSetStop ) goto goto_next_file; | 1962 if ( guiIntfStruct.Playing == guiSetStop ) goto goto_next_file; |
1961 guiGetEvent( guiCEvent,(char *)guiSetPlay ); | 1963 guiGetEvent( guiCEvent,(char *)guiSetPlay ); |
1962 } | 1964 } |
1963 #endif | 1965 #endif |
1966 if(pkey!=32 && pkey!=112) | |
1967 mplayer_put_key(pkey); // pass on the key | |
1964 } | 1968 } |
1965 | 1969 |
1966 // handle -sstep | 1970 // handle -sstep |
1967 if(step_sec>0) { | 1971 if(step_sec>0) { |
1968 osd_function=OSD_FFW; | 1972 osd_function=OSD_FFW; |