comparison Gui/mplayer/play.c @ 1791:2e86c5c8071e

fix subvindov
author pontscho
date Thu, 30 Aug 2001 22:07:19 +0000
parents e9ea2e9cf854
children 13ea5f992185
comparison
equal deleted inserted replaced
1790:f34087fa1469 1791:2e86c5c8071e
51 if ( !mplShMem->Playing ) return; 51 if ( !mplShMem->Playing ) return;
52 // --- 52 // ---
53 printf("%%%%%% STOP \n"); 53 printf("%%%%%% STOP \n");
54 // --- 54 // ---
55 mplShMem->Playing=0; 55 mplShMem->Playing=0;
56 mplSubRender=1;
56 } 57 }
57 58
58 void mplPlay( void ) 59 void mplPlay( void )
59 { 60 {
60 if ( mplShMem->Filename[0] == 0 ) return; 61 if ( mplShMem->Filename[0] == 0 ) return;
61 if ( mplShMem->Playing ) mplStop(); 62 if ( mplShMem->Playing ) mplStop();
62 // --- 63 // ---
63 printf("%%%%%% PLAY \n"); 64 printf("%%%%%% PLAY \n");
64 // --- 65 // ---
65 mplShMem->Playing=1; 66 mplShMem->Playing=1;
67 mplSubRender=0;
66 } 68 }
67 69
68 void mplPause( void ) 70 void mplPause( void )
69 { 71 {
70 if ( mplShMem->Playing != 1 ) return; 72 if ( mplShMem->Playing != 1 ) return;
71 // --- 73 // ---
72 printf("%%%%%% PAUSE \n"); 74 printf("%%%%%% PAUSE \n");
73 // --- 75 // ---
74 mplShMem->Playing=2; 76 mplShMem->Playing=2;
77 mplSubRender=0;
75 } 78 }
76 79
77 void mplResize( unsigned int X,unsigned int Y,unsigned int width,unsigned int height ) 80 void mplResize( unsigned int X,unsigned int Y,unsigned int width,unsigned int height )
78 { 81 {
79 vo_setwindowsize( width,height ); 82 vo_setwindowsize( width,height );