Mercurial > mplayer.hg
changeset 7751:27c9c440536f
- dvd aspect changing bug - fixed
- if codec is not found -> sig11 - fixed
- pp autoq handling bug - fixed
- some warning - fixed
author | pontscho |
---|---|
date | Wed, 16 Oct 2002 15:35:28 +0000 |
parents | 3a2b4bf47dbc |
children | 18f8233094da |
files | Gui/mplayer/gtk/opts.c Gui/mplayer/mw.h Gui/wm/ws.c mplayer.c |
diffstat | 4 files changed, 16 insertions(+), 10 deletions(-) [+] |
line wrap: on
line diff
--- a/Gui/mplayer/gtk/opts.c Wed Oct 16 15:15:43 2002 +0000 +++ b/Gui/mplayer/gtk/opts.c Wed Oct 16 15:35:28 2002 +0000 @@ -364,6 +364,7 @@ gtk_signal_connect( GTK_OBJECT( HSFontOSDScale ),"motion_notify_event",GTK_SIGNAL_FUNC( prHScaler ),(void*)9 ); gtk_signal_connect( GTK_OBJECT( EFontEncoding ),"changed",GTK_SIGNAL_FUNC( prEntry ),NULL ); #endif + gtk_signal_connect( GTK_OBJECT( HSPPQuality ),"motion_notify_event",GTK_SIGNAL_FUNC( prHScaler ),(void*)10 ); gtk_signal_connect( GTK_OBJECT( CLADrivers ),"select_row",GTK_SIGNAL_FUNC( prCListRow ),(void*)0 ); gtk_signal_connect( GTK_OBJECT( CLVDrivers ),"select_row",GTK_SIGNAL_FUNC( prCListRow ),(void*)1 ); @@ -557,6 +558,9 @@ gtkSet( gtkSetFontOSDScale,HSFontOSDScaleadj->value,NULL ); break; #endif + case 10: // auto quality + gtkSet( gtkSetAutoq,HSPPQualityadj->value,NULL ); + break; } return FALSE; } @@ -1638,7 +1642,8 @@ gtk_misc_set_alignment( GTK_MISC( label14 ),7.45058e-09,0.5 ); gtk_misc_set_padding( GTK_MISC( label14 ),4,0 ); - HSPPQualityadj=GTK_ADJUSTMENT( gtk_adjustment_new( 0,0,100,0,0,0 ) ); + if ( guiIntfStruct.sh_video && guiIntfStruct.Playing ) HSPPQualityadj=GTK_ADJUSTMENT( gtk_adjustment_new( 0,0,get_video_quality_max( guiIntfStruct.sh_video ),0,0,0 ) ); + else HSPPQualityadj=GTK_ADJUSTMENT( gtk_adjustment_new( 0,0,100,0,0,0 ) ); HSPPQuality=gtk_hscale_new( HSPPQualityadj ); gtk_widget_set_name( HSPPQuality,"HSPPQuality" ); gtk_widget_ref( HSPPQuality );
--- a/Gui/mplayer/mw.h Wed Oct 16 15:15:43 2002 +0000 +++ b/Gui/mplayer/mw.h Wed Oct 16 15:35:28 2002 +0000 @@ -456,8 +456,9 @@ case 1: default: movie_aspect=-1; } - guiIntfStruct.FilenameChanged=1; wsClearWindow( appMPlayer.subWindow ); + if ( guiIntfStruct.StreamType == STREAMTYPE_DVD ) goto play_dvd_2; + else guiIntfStruct.FilenameChanged=1; break; // --- timer events
--- a/Gui/wm/ws.c Wed Oct 16 15:15:43 2002 +0000 +++ b/Gui/wm/ws.c Wed Oct 16 15:35:28 2002 +0000 @@ -575,11 +575,11 @@ case ClientMessage: if ( Event->xclient.message_type == wsWindowList[l]->AtomProtocols ) { - if ( Event->xclient.data.l[0] == wsWindowList[l]->AtomDeleteWindow ) + if ( (Atom)Event->xclient.data.l[0] == wsWindowList[l]->AtomDeleteWindow ) { i=wsWindowClosed; goto expose; } - if ( Event->xclient.data.l[0] == wsWindowList[l]->AtomTakeFocus ) + if ( (Atom)Event->xclient.data.l[0] == wsWindowList[l]->AtomTakeFocus ) { i=wsWindowFocusIn; wsWindowList[l]->Focused=wsFocused; goto expose; } - if ( Event->xclient.data.l[0] == wsWindowList[l]->AtomRolle ) + if ( (Atom)Event->xclient.data.l[0] == wsWindowList[l]->AtomRolle ) { mp_msg( MSGT_GPLAYER,MSGL_STATUS,"[ws] rolled.\n" ); } } else { /* try to process DND events */ @@ -776,7 +776,7 @@ Atom type; int format; unsigned long nitems, bytesafter; - unsigned char * args = NULL; + Atom * args = NULL; if ( wsWMType == wsWMIceWM ) { @@ -792,7 +792,7 @@ } type=XInternAtom( wsDisplay,"_NET_SUPPORTED",False ); - if ( Success == XGetWindowProperty( wsDisplay,wsRootWin,type,0,65536 / sizeof( int32_t ),False,AnyPropertyType,&type,&format,&nitems,&bytesafter,&args ) && nitems > 0 ) + if ( Success == XGetWindowProperty( wsDisplay,wsRootWin,type,0,65536 / sizeof( int32_t ),False,AnyPropertyType,&type,&format,&nitems,&bytesafter,(unsigned char **)&args ) && nitems > 0 ) { int i; XEvent e; @@ -806,7 +806,7 @@ e.xclient.data.l[1]=XInternAtom( wsDisplay,"_NET_WM_STATE_STAYS_ON_TOP",False ); type=XInternAtom( wsDisplay,"_NET_WM_STATE_FULLSCREEN",False ); - for ( i=0;i < nitems;i++ ) + for ( i=0;(unsigned long)i < nitems;i++ ) if ( args[i] == type ) { e.xclient.data.l[1]=XInternAtom( wsDisplay,"_NET_WM_STATE_FULLSCREEN",False ); break; } e.xclient.data.l[2]=0l; @@ -818,7 +818,7 @@ return; } type=XInternAtom( wsDisplay,"_WIN_SUPPORTING_WM_CHECK",False ); - if ( Success == XGetWindowProperty( wsDisplay,wsRootWin,type,0,65536 / sizeof( int32_t ),False,AnyPropertyType,&type,&format,&nitems,&bytesafter,&args ) && nitems > 0 ) + if ( Success == XGetWindowProperty( wsDisplay,wsRootWin,type,0,65536 / sizeof( int32_t ),False,AnyPropertyType,&type,&format,&nitems,&bytesafter,(unsigned char **)&args ) && nitems > 0 ) { XClientMessageEvent xev;
--- a/mplayer.c Wed Oct 16 15:15:43 2002 +0000 +++ b/mplayer.c Wed Oct 16 15:35:28 2002 +0000 @@ -2532,7 +2532,7 @@ #ifdef HAVE_NEW_GUI if(use_gui){ guiEventHandling(); - if(demuxer->file_format==DEMUXER_TYPE_AVI && sh_video->video.dwLength>2){ + if(demuxer->file_format==DEMUXER_TYPE_AVI && sh_video && sh_video->video.dwLength>2){ // get pos from frame number / total frames guiIntfStruct.Position=(float)d_video->pack_no*100.0f/sh_video->video.dwLength; } else {