# HG changeset patch # User pontscho # Date 1003921098 0 # Node ID 3248aabc6d1d10271f86163a49e2aecd20ad232b # Parent 6fb598bd7ede4091fe82ed77f2adeee8aae57104 add vcd,dvd,etcsymbol handling diff -r 6fb598bd7ede -r 3248aabc6d1d Gui/mplayer/mw.h --- a/Gui/mplayer/mw.h Wed Oct 24 09:18:20 2001 +0000 +++ b/Gui/mplayer/mw.h Wed Oct 24 10:58:18 2001 +0000 @@ -1,6 +1,8 @@ // main window +#include "../../libmpdemux/stream.h" + unsigned char * mplDrawBuffer = NULL; int mplMainRender = 1; int mplMainAutoPlay = 0; @@ -100,6 +102,16 @@ case 2: strcat( trbuf,"t" ); break; } break; + case 'T': + switch ( mplShMem->StreamType ) + { + case STREAMTYPE_FILE: strcat( trbuf,"f" ); break; + case STREAMTYPE_VCD: strcat( trbuf,"v" ); break; + case STREAMTYPE_STREAM: strcat( trbuf,"u" ); break; + case STREAMTYPE_DVD: strcat( trbuf,"d" ); break; + default: strcat( trbuf," " ); break; + } + break; case '$': strcat( trbuf,"$" ); break; default: continue; } diff -r 6fb598bd7ede -r 3248aabc6d1d Gui/mplayer/play.c --- a/Gui/mplayer/play.c Wed Oct 24 09:18:20 2001 +0000 +++ b/Gui/mplayer/play.c Wed Oct 24 10:58:18 2001 +0000 @@ -121,6 +121,7 @@ mplShMem=calloc( 1,sizeof( mplCommStruct ) ); mplShMem->Balance=50.0f; + mplShMem->StreamType=-1; memset(&sa, 0, sizeof(sa)); sa.sa_handler = mplMainSigHandler; sigaction( SIGTYPE,&sa,NULL ); @@ -178,21 +179,6 @@ wsResizeImage( &appMPlayer.menuWindow,appMPlayer.menuBase.width,appMPlayer.menuBase.height ); } -/* - if ( appMPlayer.sub.Bitmap.Image ) wsResizeImage( &appMPlayer.subWindow,appMPlayer.sub.Bitmap.Width,appMPlayer.sub.Bitmap.Height ); - if ( !mplShMem->Playing ) - { - if ( !appMPlayer.subWindow.isFullScreen ) - { - wsResizeWindow( &appMPlayer.subWindow,appMPlayer.sub.width,appMPlayer.sub.height ); - wsMoveWindow( &appMPlayer.subWindow,appMPlayer.sub.x,appMPlayer.sub.y ); - } - wsSetBackgroundRGB( &appMPlayer.subWindow,appMPlayer.subR,appMPlayer.subG,appMPlayer.subB ); - wsClearWindow( appMPlayer.subWindow ); - if ( appMPlayer.sub.Bitmap.Image ) wsConvert( &appMPlayer.subWindow,appMPlayer.sub.Bitmap.Image,appMPlayer.sub.Bitmap.ImageSize ); - mplSubRender=1; wsPostRedisplay( &appMPlayer.subWindow ); - } -*/ if ( appMPlayer.sub.Bitmap.Image ) wsResizeImage( &appMPlayer.subWindow,appMPlayer.sub.Bitmap.Width,appMPlayer.sub.Bitmap.Height ); if ( ( !appMPlayer.subWindow.isFullScreen )&&( !mplShMem->Playing ) ) { diff -r 6fb598bd7ede -r 3248aabc6d1d Gui/mplayer/psignal.c --- a/Gui/mplayer/psignal.c Wed Oct 24 09:18:20 2001 +0000 +++ b/Gui/mplayer/psignal.c Wed Oct 24 10:58:18 2001 +0000 @@ -16,6 +16,7 @@ #include "../../config.h" #include "../../libvo/x11_common.h" +#include "../../libmpdemux/stream.h" #include "./mplayer.h" @@ -174,6 +175,7 @@ strcat( mplShMem->Filename,gtkShMem->fs.filename ); printf( "%%%%%%%% Playing file: %s\n",mplShMem->Filename ); mplShMem->FilenameChanged=1; + mplShMem->StreamType=STREAMTYPE_FILE; if ( mplMainAutoPlay ) mplGeneralTimer=1; break; case evMessageBox: diff -r 6fb598bd7ede -r 3248aabc6d1d mplayer.c --- a/mplayer.c Wed Oct 24 09:18:20 2001 +0000 +++ b/mplayer.c Wed Oct 24 10:58:18 2001 +0000 @@ -1084,6 +1084,7 @@ mplResizeToMovieSize( sh_video->disp_w,sh_video->disp_h ); moviewidth=screen_size_x=sh_video->disp_w; movieheight=screen_size_y=sh_video->disp_h; + mplShMem->StreamType=stream->type; } #endif