Mercurial > mplayer.hg
comparison Gui/mplayer/mplayer.c @ 6218:8cfddba867b4
fix text render chrash ...
author | pontscho |
---|---|
date | Tue, 28 May 2002 11:55:17 +0000 |
parents | b8d8d72776f2 |
children | d43d0460cad5 |
comparison
equal
deleted
inserted
replaced
6217:d2167f69a48b | 6218:8cfddba867b4 |
---|---|
40 mplTimer++; | 40 mplTimer++; |
41 mplRedrawTimer--; | 41 mplRedrawTimer--; |
42 if ( mplRedrawTimer == 0 ) mplEventHandling( evRedraw,0 ); | 42 if ( mplRedrawTimer == 0 ) mplEventHandling( evRedraw,0 ); |
43 } | 43 } |
44 | 44 |
45 void mplInit( int argc,char* argv[], char *envp[], void* disp ) | 45 void mplInit( void * disp ) |
46 { | 46 { |
47 int i; | 47 int i; |
48 | 48 |
49 // init fields of this struct to default values | 49 // init fields of this struct to default values |
50 mplMPlayerInit( argc,argv,envp ); | 50 mplMPlayerInit(); |
51 | 51 |
52 // fork() a process which runs gtkThreadProc() [gtkPID] | 52 // fork() a process which runs gtkThreadProc() [gtkPID] |
53 gtkInit( argc,argv,envp ); | 53 gtkInit(); |
54 | 54 |
55 // opens X display, checks for extensions (XShape, DGA etc) | 55 // opens X display, checks for extensions (XShape, DGA etc) |
56 wsXInit(disp); | 56 wsXInit( disp ); |
57 | 57 |
58 if ( ( mplDrawBuffer = (unsigned char *)calloc( 1,appMPlayer.main.Bitmap.ImageSize ) ) == NULL ) | 58 if ( ( mplDrawBuffer = (unsigned char *)calloc( 1,appMPlayer.main.Bitmap.ImageSize ) ) == NULL ) |
59 { | 59 { |
60 fprintf( stderr,MSGTR_NEMDB ); | 60 fprintf( stderr,MSGTR_NEMDB ); |
61 exit( 0 ); | 61 exit( 0 ); |