summaryrefslogtreecommitdiffstats
path: root/Gui/interface.c
diff options
context:
space:
mode:
authorpontscho <pontscho@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-08-29 22:24:49 +0000
committerpontscho <pontscho@b3059339-0415-0410-9bf9-f77b7e298cf2>2002-08-29 22:24:49 +0000
commit8a147cf3f099be43ec026426ca87be4f18356025 (patch)
treeb27c0273fa585236f49524ab04a40168c4aadebd /Gui/interface.c
parent354fc0e75c95dc3d920c1cd8e37880d05fd2f42e (diff)
downloadmpv-8a147cf3f099be43ec026426ca87be4f18356025.tar.bz2
mpv-8a147cf3f099be43ec026426ca87be4f18356025.tar.xz
- add play time subtitle change support
- better language support git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7151 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'Gui/interface.c')
-rw-r--r--Gui/interface.c26
1 files changed, 26 insertions, 0 deletions
diff --git a/Gui/interface.c b/Gui/interface.c
index 705f2e782b..246b8998c4 100644
--- a/Gui/interface.c
+++ b/Gui/interface.c
@@ -238,6 +238,27 @@ void guiLoadFont( void )
}
#endif
+#ifdef USE_SUB
+void guiLoadSubtitle( char * name )
+{
+ if ( guiIntfStruct.Playing == 0 )
+ {
+ guiIntfStruct.SubtitleChanged=1;
+ return;
+ }
+ if ( subtitles )
+ {
+ sub_free( subtitles );
+ if ( sub_name ) free( sub_name );
+ sub_name=NULL;
+ vo_sub=NULL;
+ subtitles=NULL;
+ }
+ sub_name=gstrdup( name );
+ subtitles=sub_read_file( sub_name,guiIntfStruct.FPS );
+}
+#endif
+
static void add_vop( char * str )
{
mp_msg( MSGT_GPLAYER,MSGL_STATUS,"[gui] add video filter: %s\n",str );
@@ -337,9 +358,11 @@ int guiGetEvent( int type,char * arg )
guiIntfStruct.StreamType=stream->type;
switch( stream->type )
{
+#ifdef USE_DVDREAD
case STREAMTYPE_DVD:
guiGetEvent( guiSetDVD,(char *)stream->priv );
break;
+#endif
#ifdef HAVE_VCD
case STREAMTYPE_VCD:
{
@@ -353,6 +376,7 @@ int guiGetEvent( int type,char * arg )
break;
}
#endif
+ default: break;
}
break;
case guiIEvent:
@@ -391,6 +415,8 @@ int guiGetEvent( int type,char * arg )
// -- video
if ( arg )
{
+ tmp_sh_video_t * sh = (tmp_sh_video_t *)arg;
+ guiIntfStruct.FPS=sh->fps;
if ( vo_gamma_brightness == 1000 )
{ vo_gamma_brightness=0; get_video_colors( (void *)arg,"brightness",&vo_gamma_brightness ); }
if ( vo_gamma_contrast == 1000 )