diff options
author | vayne <vayne@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2006-12-28 15:31:48 +0000 |
---|---|---|
committer | vayne <vayne@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2006-12-28 15:31:48 +0000 |
commit | 42552b211a5408cd81118d55c309056e663edb3d (patch) | |
tree | ed19c5646925b60de44eeea204ad3943877239a9 /mplayer.c | |
parent | d1c91ec0124f8f87e48edb454cc05a5af07152c8 (diff) | |
download | mpv-42552b211a5408cd81118d55c309056e663edb3d.tar.bz2 mpv-42552b211a5408cd81118d55c309056e663edb3d.tar.xz |
avoid code duplication.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21780 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'mplayer.c')
-rw-r--r-- | mplayer.c | 57 |
1 files changed, 30 insertions, 27 deletions
@@ -3514,34 +3514,10 @@ void pause_loop(void) #endif } +void print_version(void){ + mp_msg(MSGT_CPLAYER, MSGL_INFO, "%s\n", MP_TITLE); -int main(int argc,char* argv[]){ - - -char * mem_ptr; - -int file_format=DEMUXER_TYPE_UNKNOWN; - -// movie info: - -/* Flag indicating whether MPlayer should exit without playing anything. */ -int opt_exit = 0; - -//float a_frame=0; // Audio - -int i; -char *tmp; - -int gui_no_filename=0; - - srand((int) time(NULL)); - - InitTimer(); - - mp_msg_init(); - - mp_msg(MSGT_CPLAYER,MSGL_INFO, "MPlayer " VERSION " (C) 2000-2006 MPlayer Team\n"); - /* Test for CPU capabilities (and corresponding OS support) for optimizing */ +/* Test for CPU capabilities (and corresponding OS support) for optimizing */ GetCpuCaps(&gCpuCaps); #ifdef ARCH_X86 mp_msg(MSGT_CPLAYER,MSGL_INFO,"CPUflags: MMX: %d MMX2: %d 3DNow: %d 3DNow2: %d SSE: %d SSE2: %d\n", @@ -3573,7 +3549,34 @@ int gui_no_filename=0; mp_msg(MSGT_CPLAYER,MSGL_INFO,"\n"); #endif /* RUNTIME_CPUDETECT */ #endif /* ARCH_X86 */ +} + +int main(int argc,char* argv[]){ + + +char * mem_ptr; + +int file_format=DEMUXER_TYPE_UNKNOWN; + +// movie info: + +/* Flag indicating whether MPlayer should exit without playing anything. */ +int opt_exit = 0; + +//float a_frame=0; // Audio + +int i; +char *tmp; + +int gui_no_filename=0; + + srand((int) time(NULL)); + + InitTimer(); + + mp_msg_init(); + print_version(); #if defined(WIN32) && defined(USE_WIN32DLL) set_path_env(); #endif /*WIN32 && USE_WIN32DLL*/ |