annotate Gui/mplayer/play.c @ 8864:b8c271750450

- sync with x11_common - half rewrited font render engine (disabled by default)
author pontscho
date Thu, 09 Jan 2003 20:47:14 +0000
parents 9ea5f18a7957
children d07ab8e088a9
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7092
8e9607c5897e - warning fixes from Dominik Mierzejewski <dominik@rangers.eu.org>
pontscho
parents: 7009
diff changeset
1
4428
3e1378354c2e Compilation fixing
nick
parents: 3479
diff changeset
2 #include <inttypes.h>
1693
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
3 #include <stdlib.h>
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
4 #include <stdio.h>
7092
8e9607c5897e - warning fixes from Dominik Mierzejewski <dominik@rangers.eu.org>
pontscho
parents: 7009
diff changeset
5 #include <string.h>
1693
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
6
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
7 #include <unistd.h>
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
8 #include <signal.h>
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
9
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
10 #include "../wm/ws.h"
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
11 #include "../../config.h"
1884
d21f8afc7680 add to multi lang support
pontscho
parents: 1866
diff changeset
12 #include "../../help_mp.h"
8423
c6a1a5b6ba25 - fix three submenu bug
pontscho
parents: 8280
diff changeset
13 #include "../../mplayer.h"
1723
5e4214a7540e GUI stuff. now seeking works, and xmga renders to video window
arpi
parents: 1693
diff changeset
14 #include "../../libvo/x11_common.h"
5665
3e7f39c4110c fix dvd playing under gui
pontscho
parents: 5046
diff changeset
15 #include "../../input/input.h"
1693
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
16
4818
3473ca9ef158 new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents: 4798
diff changeset
17 #include "../app.h"
3473ca9ef158 new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents: 4798
diff changeset
18
3473ca9ef158 new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents: 4798
diff changeset
19 #include "../wm/wskeys.h"
3473ca9ef158 new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents: 4798
diff changeset
20 #include "../interface.h"
3473ca9ef158 new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents: 4798
diff changeset
21
1693
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
22 #include "widgets.h"
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
23 #include "./mplayer.h"
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
24 #include "play.h"
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
25
1800
f5ffb03ebdb5 move skin changing here.
pontscho
parents: 1797
diff changeset
26 #include "../skin/skin.h"
4818
3473ca9ef158 new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents: 4798
diff changeset
27 #include "../skin/font.h"
1693
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
28
7009
98bed9e12087 - add dxr3 gui support (dialogbox, etc.)
pontscho
parents: 6996
diff changeset
29 #include "../libmpdemux/stream.h"
98bed9e12087 - add dxr3 gui support (dialogbox, etc.)
pontscho
parents: 6996
diff changeset
30
1723
5e4214a7540e GUI stuff. now seeking works, and xmga renders to video window
arpi
parents: 1693
diff changeset
31 extern float rel_seek_secs;
5e4214a7540e GUI stuff. now seeking works, and xmga renders to video window
arpi
parents: 1693
diff changeset
32 extern int abs_seek_pos;
5e4214a7540e GUI stuff. now seeking works, and xmga renders to video window
arpi
parents: 1693
diff changeset
33
6713
cc917a581b6e add simple playlist support
pontscho
parents: 6280
diff changeset
34 static int mplGotoTheNext = 1;
cc917a581b6e add simple playlist support
pontscho
parents: 6280
diff changeset
35
1693
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
36 void mplFullScreen( void )
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
37 {
7151
9e17b153b785 - fix window handling with dxr3
pontscho
parents: 7092
diff changeset
38 if ( guiIntfStruct.NoWindow && guiIntfStruct.Playing ) return;
7092
8e9607c5897e - warning fixes from Dominik Mierzejewski <dominik@rangers.eu.org>
pontscho
parents: 7009
diff changeset
39 #if 0
2029
41ed89701ece fix fucking icewm fullscreen bug.
pontscho
parents: 2025
diff changeset
40 static int sx,sy;
5032
931ce1e11ad1 fix fs handling
pontscho
parents: 4983
diff changeset
41 // if ( !guiIntfStruct.Playing )
2029
41ed89701ece fix fucking icewm fullscreen bug.
pontscho
parents: 2025
diff changeset
42 {
4981
bfc652fc7f43 rewrite fullscreen support in some libvo driver
pontscho
parents: 4963
diff changeset
43 wsVisibleWindow( &appMPlayer.subWindow,wsHideWindow );
bfc652fc7f43 rewrite fullscreen support in some libvo driver
pontscho
parents: 4963
diff changeset
44 if ( appMPlayer.subWindow.isFullScreen )
bfc652fc7f43 rewrite fullscreen support in some libvo driver
pontscho
parents: 4963
diff changeset
45 {
bfc652fc7f43 rewrite fullscreen support in some libvo driver
pontscho
parents: 4963
diff changeset
46 wsResizeWindow( &appMPlayer.subWindow,sx,sy );
bfc652fc7f43 rewrite fullscreen support in some libvo driver
pontscho
parents: 4963
diff changeset
47 wsMoveWindow( &appMPlayer.subWindow,True,appMPlayer.sub.x,appMPlayer.sub.y );
bfc652fc7f43 rewrite fullscreen support in some libvo driver
pontscho
parents: 4963
diff changeset
48 wsWindowDecoration( &appMPlayer.subWindow,appMPlayer.subWindow.Decorations );
bfc652fc7f43 rewrite fullscreen support in some libvo driver
pontscho
parents: 4963
diff changeset
49 appMPlayer.subWindow.isFullScreen=0;
bfc652fc7f43 rewrite fullscreen support in some libvo driver
pontscho
parents: 4963
diff changeset
50 }
bfc652fc7f43 rewrite fullscreen support in some libvo driver
pontscho
parents: 4963
diff changeset
51 else
bfc652fc7f43 rewrite fullscreen support in some libvo driver
pontscho
parents: 4963
diff changeset
52 {
bfc652fc7f43 rewrite fullscreen support in some libvo driver
pontscho
parents: 4963
diff changeset
53 sx=appMPlayer.subWindow.Width; sy=appMPlayer.subWindow.Height;
bfc652fc7f43 rewrite fullscreen support in some libvo driver
pontscho
parents: 4963
diff changeset
54 wsResizeWindow( &appMPlayer.subWindow,wsMaxX,wsMaxY );
bfc652fc7f43 rewrite fullscreen support in some libvo driver
pontscho
parents: 4963
diff changeset
55 wsMoveWindow( &appMPlayer.subWindow,True,0,0 );
bfc652fc7f43 rewrite fullscreen support in some libvo driver
pontscho
parents: 4963
diff changeset
56 wsWindowDecoration( &appMPlayer.subWindow,0 );
bfc652fc7f43 rewrite fullscreen support in some libvo driver
pontscho
parents: 4963
diff changeset
57 appMPlayer.subWindow.isFullScreen=1;
bfc652fc7f43 rewrite fullscreen support in some libvo driver
pontscho
parents: 4963
diff changeset
58 }
5032
931ce1e11ad1 fix fs handling
pontscho
parents: 4983
diff changeset
59 vo_fs=appMPlayer.subWindow.isFullScreen;
4981
bfc652fc7f43 rewrite fullscreen support in some libvo driver
pontscho
parents: 4963
diff changeset
60 wsVisibleWindow( &appMPlayer.subWindow,wsShowWindow );
5032
931ce1e11ad1 fix fs handling
pontscho
parents: 4983
diff changeset
61 }// else { vo_x11_fullscreen(); appMPlayer.subWindow.isFullScreen=vo_fs; }
5910
20c335d98ab3 fix fullscreen bug es ilyen libvo not initialized bug with gui igy
pontscho
parents: 5701
diff changeset
62 #else
5997
b5fb9a927bf3 add WM detection, and wm specific fullscreen code. (???)
pontscho
parents: 5986
diff changeset
63 if ( ( guiIntfStruct.Playing )&&( appMPlayer.subWindow.isFullScreen ) )
b5fb9a927bf3 add WM detection, and wm specific fullscreen code. (???)
pontscho
parents: 5986
diff changeset
64 {
b5fb9a927bf3 add WM detection, and wm specific fullscreen code. (???)
pontscho
parents: 5986
diff changeset
65 appMPlayer.subWindow.OldWidth=guiIntfStruct.MovieWidth; appMPlayer.subWindow.OldHeight=guiIntfStruct.MovieHeight;
b5fb9a927bf3 add WM detection, and wm specific fullscreen code. (???)
pontscho
parents: 5986
diff changeset
66 switch ( appMPlayer.sub.x )
b5fb9a927bf3 add WM detection, and wm specific fullscreen code. (???)
pontscho
parents: 5986
diff changeset
67 {
b5fb9a927bf3 add WM detection, and wm specific fullscreen code. (???)
pontscho
parents: 5986
diff changeset
68 case -1: appMPlayer.subWindow.OldX=( wsMaxX / 2 ) - ( appMPlayer.subWindow.OldWidth / 2 ); break;
b5fb9a927bf3 add WM detection, and wm specific fullscreen code. (???)
pontscho
parents: 5986
diff changeset
69 case -2: appMPlayer.subWindow.OldX=wsMaxX - appMPlayer.subWindow.OldWidth; break;
b5fb9a927bf3 add WM detection, and wm specific fullscreen code. (???)
pontscho
parents: 5986
diff changeset
70 default: appMPlayer.subWindow.OldX=appMPlayer.sub.x; break;
b5fb9a927bf3 add WM detection, and wm specific fullscreen code. (???)
pontscho
parents: 5986
diff changeset
71 }
b5fb9a927bf3 add WM detection, and wm specific fullscreen code. (???)
pontscho
parents: 5986
diff changeset
72 switch ( appMPlayer.sub.y )
b5fb9a927bf3 add WM detection, and wm specific fullscreen code. (???)
pontscho
parents: 5986
diff changeset
73 {
b5fb9a927bf3 add WM detection, and wm specific fullscreen code. (???)
pontscho
parents: 5986
diff changeset
74 case -1: appMPlayer.subWindow.OldY=( wsMaxY / 2 ) - ( appMPlayer.subWindow.OldHeight / 2 ); break;
b5fb9a927bf3 add WM detection, and wm specific fullscreen code. (???)
pontscho
parents: 5986
diff changeset
75 case -2: appMPlayer.subWindow.OldY=wsMaxY - appMPlayer.subWindow.OldHeight; break;
b5fb9a927bf3 add WM detection, and wm specific fullscreen code. (???)
pontscho
parents: 5986
diff changeset
76 default: appMPlayer.subWindow.OldY=appMPlayer.sub.y; break;
b5fb9a927bf3 add WM detection, and wm specific fullscreen code. (???)
pontscho
parents: 5986
diff changeset
77 }
b5fb9a927bf3 add WM detection, and wm specific fullscreen code. (???)
pontscho
parents: 5986
diff changeset
78 }
5910
20c335d98ab3 fix fullscreen bug es ilyen libvo not initialized bug with gui igy
pontscho
parents: 5701
diff changeset
79 wsFullScreen( &appMPlayer.subWindow );
5997
b5fb9a927bf3 add WM detection, and wm specific fullscreen code. (???)
pontscho
parents: 5986
diff changeset
80 vo_fs=appMPlayer.subWindow.isFullScreen;
b5fb9a927bf3 add WM detection, and wm specific fullscreen code. (???)
pontscho
parents: 5986
diff changeset
81 wsSetLayer( wsDisplay,appMPlayer.mainWindow.WindowID,appMPlayer.subWindow.isFullScreen );
b5fb9a927bf3 add WM detection, and wm specific fullscreen code. (???)
pontscho
parents: 5986
diff changeset
82 wsSetLayer( wsDisplay,appMPlayer.menuWindow.WindowID,appMPlayer.subWindow.isFullScreen );
5910
20c335d98ab3 fix fullscreen bug es ilyen libvo not initialized bug with gui igy
pontscho
parents: 5701
diff changeset
83 #endif
20c335d98ab3 fix fullscreen bug es ilyen libvo not initialized bug with gui igy
pontscho
parents: 5701
diff changeset
84
4981
bfc652fc7f43 rewrite fullscreen support in some libvo driver
pontscho
parents: 4963
diff changeset
85 fullscreen=appMPlayer.subWindow.isFullScreen;
4818
3473ca9ef158 new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents: 4798
diff changeset
86 if ( guiIntfStruct.Playing ) wsSetBackgroundRGB( &appMPlayer.subWindow,0,0,0 );
2045
deb4aff05c44 fix other bugs
pontscho
parents: 2029
diff changeset
87 else wsSetBackgroundRGB( &appMPlayer.subWindow,appMPlayer.subR,appMPlayer.subG,appMPlayer.subB );
1693
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
88 }
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
89
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
90 extern int mplSubRender;
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
91
6713
cc917a581b6e add simple playlist support
pontscho
parents: 6280
diff changeset
92 void mplEnd( void )
cc917a581b6e add simple playlist support
pontscho
parents: 6280
diff changeset
93 {
cc917a581b6e add simple playlist support
pontscho
parents: 6280
diff changeset
94 plItem * next;
cc917a581b6e add simple playlist support
pontscho
parents: 6280
diff changeset
95
cc917a581b6e add simple playlist support
pontscho
parents: 6280
diff changeset
96 if ( !mplGotoTheNext ) { mplGotoTheNext=1; return; }
cc917a581b6e add simple playlist support
pontscho
parents: 6280
diff changeset
97
6794
77980ab4e296 - add preferences support (first try)
pontscho
parents: 6713
diff changeset
98 if ( guiIntfStruct.Playing && (next=gtkSet( gtkGetNextPlItem,0,NULL )) && plLastPlayed != next )
6713
cc917a581b6e add simple playlist support
pontscho
parents: 6280
diff changeset
99 {
cc917a581b6e add simple playlist support
pontscho
parents: 6280
diff changeset
100 plLastPlayed=next;
cc917a581b6e add simple playlist support
pontscho
parents: 6280
diff changeset
101 guiSetDF( guiIntfStruct.Filename,next->path,next->name );
cc917a581b6e add simple playlist support
pontscho
parents: 6280
diff changeset
102 guiIntfStruct.StreamType=STREAMTYPE_FILE;
8423
c6a1a5b6ba25 - fix three submenu bug
pontscho
parents: 8280
diff changeset
103 guiIntfStruct.FilenameChanged=guiIntfStruct.NewPlay=1;
6857
pontscho
parents: 6794
diff changeset
104 gfree( (void **)&guiIntfStruct.AudioFile );
pontscho
parents: 6794
diff changeset
105 gfree( (void **)&guiIntfStruct.Subtitlename );
6794
77980ab4e296 - add preferences support (first try)
pontscho
parents: 6713
diff changeset
106 }
77980ab4e296 - add preferences support (first try)
pontscho
parents: 6713
diff changeset
107 else
77980ab4e296 - add preferences support (first try)
pontscho
parents: 6713
diff changeset
108 {
8484
9ea5f18a7957 - fix (?) "mixer bug"
pontscho
parents: 8423
diff changeset
109 if ( guiIntfStruct.FilenameChanged || guiIntfStruct.NewPlay ) return;
6903
c2d4100c964e - fix mixer handling
pontscho
parents: 6857
diff changeset
110
6794
77980ab4e296 - add preferences support (first try)
pontscho
parents: 6713
diff changeset
111 guiIntfStruct.TimeSec=0;
77980ab4e296 - add preferences support (first try)
pontscho
parents: 6713
diff changeset
112 guiIntfStruct.Position=0;
77980ab4e296 - add preferences support (first try)
pontscho
parents: 6713
diff changeset
113 guiIntfStruct.AudioType=0;
8423
c6a1a5b6ba25 - fix three submenu bug
pontscho
parents: 8280
diff changeset
114 guiIntfStruct.NoWindow=False;
c6a1a5b6ba25 - fix three submenu bug
pontscho
parents: 8280
diff changeset
115
6996
163f78ece9c2 add uri2filename converter
pontscho
parents: 6967
diff changeset
116 #ifdef USE_DVDREAD
6912
5ddd609550d5 - fix equ handling
pontscho
parents: 6903
diff changeset
117 guiIntfStruct.DVD.current_title=1;
5ddd609550d5 - fix equ handling
pontscho
parents: 6903
diff changeset
118 guiIntfStruct.DVD.current_chapter=1;
5ddd609550d5 - fix equ handling
pontscho
parents: 6903
diff changeset
119 guiIntfStruct.DVD.current_angle=1;
6996
163f78ece9c2 add uri2filename converter
pontscho
parents: 6967
diff changeset
120 #endif
6713
cc917a581b6e add simple playlist support
pontscho
parents: 6280
diff changeset
121
6794
77980ab4e296 - add preferences support (first try)
pontscho
parents: 6713
diff changeset
122 if ( !appMPlayer.subWindow.isFullScreen )
77980ab4e296 - add preferences support (first try)
pontscho
parents: 6713
diff changeset
123 {
77980ab4e296 - add preferences support (first try)
pontscho
parents: 6713
diff changeset
124 wsResizeWindow( &appMPlayer.subWindow,appMPlayer.sub.width,appMPlayer.sub.height );
77980ab4e296 - add preferences support (first try)
pontscho
parents: 6713
diff changeset
125 wsMoveWindow( &appMPlayer.subWindow,True,appMPlayer.sub.x,appMPlayer.sub.y );
77980ab4e296 - add preferences support (first try)
pontscho
parents: 6713
diff changeset
126 }
77980ab4e296 - add preferences support (first try)
pontscho
parents: 6713
diff changeset
127 guiGetEvent( guiCEvent,guiSetStop );
77980ab4e296 - add preferences support (first try)
pontscho
parents: 6713
diff changeset
128 mplSubRender=1;
77980ab4e296 - add preferences support (first try)
pontscho
parents: 6713
diff changeset
129 wsSetBackgroundRGB( &appMPlayer.subWindow,appMPlayer.subR,appMPlayer.subG,appMPlayer.subB );
77980ab4e296 - add preferences support (first try)
pontscho
parents: 6713
diff changeset
130 wsClearWindow( appMPlayer.subWindow );
77980ab4e296 - add preferences support (first try)
pontscho
parents: 6713
diff changeset
131 wsPostRedisplay( &appMPlayer.subWindow );
77980ab4e296 - add preferences support (first try)
pontscho
parents: 6713
diff changeset
132 }
1693
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
133 }
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
134
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
135 void mplPlay( void )
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
136 {
4818
3473ca9ef158 new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents: 4798
diff changeset
137 if ( ( !guiIntfStruct.Filename )||
3473ca9ef158 new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents: 4798
diff changeset
138 ( guiIntfStruct.Filename[0] == 0 )||
3473ca9ef158 new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents: 4798
diff changeset
139 ( guiIntfStruct.Playing == 1 ) ) return;
3473ca9ef158 new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents: 4798
diff changeset
140 if ( guiIntfStruct.Playing == 2 ) { mplPause(); return; }
6794
77980ab4e296 - add preferences support (first try)
pontscho
parents: 6713
diff changeset
141 guiGetEvent( guiCEvent,(void *)guiSetPlay );
1791
2e86c5c8071e fix subvindov
pontscho
parents: 1784
diff changeset
142 mplSubRender=0;
1858
88a88d0a3f94 fix skin changing, xv fullscreen redraw bug, etc.
pontscho
parents: 1852
diff changeset
143 wsSetBackgroundRGB( &appMPlayer.subWindow,0,0,0 );
4818
3473ca9ef158 new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents: 4798
diff changeset
144 wsClearWindow( appMPlayer.subWindow );
1693
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
145 }
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
146
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
147 void mplPause( void )
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
148 {
6794
77980ab4e296 - add preferences support (first try)
pontscho
parents: 6713
diff changeset
149 if ( !guiIntfStruct.Playing ) return;
77980ab4e296 - add preferences support (first try)
pontscho
parents: 6713
diff changeset
150 if ( guiIntfStruct.Playing == 1 )
77980ab4e296 - add preferences support (first try)
pontscho
parents: 6713
diff changeset
151 {
77980ab4e296 - add preferences support (first try)
pontscho
parents: 6713
diff changeset
152 mp_cmd_t * cmd = (mp_cmd_t *)calloc( 1,sizeof( *cmd ) );
77980ab4e296 - add preferences support (first try)
pontscho
parents: 6713
diff changeset
153 cmd->id=MP_CMD_PAUSE;
77980ab4e296 - add preferences support (first try)
pontscho
parents: 6713
diff changeset
154 cmd->name=strdup("pause");
77980ab4e296 - add preferences support (first try)
pontscho
parents: 6713
diff changeset
155 mp_input_queue_cmd(cmd);
77980ab4e296 - add preferences support (first try)
pontscho
parents: 6713
diff changeset
156 } else guiIntfStruct.Playing=1;
1693
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
157 }
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
158
4465
b013d01d9968 small bugfixes, and kill other warning
pontscho
parents: 4428
diff changeset
159 void mplState( void )
b013d01d9968 small bugfixes, and kill other warning
pontscho
parents: 4428
diff changeset
160 {
4818
3473ca9ef158 new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents: 4798
diff changeset
161 if ( ( guiIntfStruct.Playing == 0 )||( guiIntfStruct.Playing == 2 ) )
4465
b013d01d9968 small bugfixes, and kill other warning
pontscho
parents: 4428
diff changeset
162 {
b013d01d9968 small bugfixes, and kill other warning
pontscho
parents: 4428
diff changeset
163 btnModify( evPlaySwitchToPause,btnReleased );
b013d01d9968 small bugfixes, and kill other warning
pontscho
parents: 4428
diff changeset
164 btnModify( evPauseSwitchToPlay,btnDisabled );
b013d01d9968 small bugfixes, and kill other warning
pontscho
parents: 4428
diff changeset
165 }
4818
3473ca9ef158 new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents: 4798
diff changeset
166 else
4465
b013d01d9968 small bugfixes, and kill other warning
pontscho
parents: 4428
diff changeset
167 {
b013d01d9968 small bugfixes, and kill other warning
pontscho
parents: 4428
diff changeset
168 btnModify( evPlaySwitchToPause,btnDisabled );
b013d01d9968 small bugfixes, and kill other warning
pontscho
parents: 4428
diff changeset
169 btnModify( evPauseSwitchToPlay,btnReleased );
b013d01d9968 small bugfixes, and kill other warning
pontscho
parents: 4428
diff changeset
170 }
b013d01d9968 small bugfixes, and kill other warning
pontscho
parents: 4428
diff changeset
171 }
b013d01d9968 small bugfixes, and kill other warning
pontscho
parents: 4428
diff changeset
172
1693
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
173 float mplGetPosition( void )
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
174 { // return 0.0 ... 100.0
4818
3473ca9ef158 new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents: 4798
diff changeset
175 return guiIntfStruct.Position;
1693
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
176 }
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
177
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
178 void mplRelSeek( float s )
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
179 { // -+s
1723
5e4214a7540e GUI stuff. now seeking works, and xmga renders to video window
arpi
parents: 1693
diff changeset
180 rel_seek_secs=s; abs_seek_pos=0;
1693
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
181 }
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
182
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
183 void mplAbsSeek( float s )
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
184 { // 0.0 ... 100.0
8280
72700fefd3dc no seeking if stream is STREAMTYPE_STREAM (net/stdin)
pontscho
parents: 8055
diff changeset
185 if ( guiIntfStruct.StreamType == STREAMTYPE_STREAM ) return;
1723
5e4214a7540e GUI stuff. now seeking works, and xmga renders to video window
arpi
parents: 1693
diff changeset
186 rel_seek_secs=0.01*s; abs_seek_pos=3;
1693
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
187 }
d237c5d4b216 GUI version n-1
arpi
parents:
diff changeset
188
1800
f5ffb03ebdb5 move skin changing here.
pontscho
parents: 1797
diff changeset
189 listItems tmpList;
f5ffb03ebdb5 move skin changing here.
pontscho
parents: 1797
diff changeset
190
4818
3473ca9ef158 new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents: 4798
diff changeset
191 void ChangeSkin( char * name )
1800
f5ffb03ebdb5 move skin changing here.
pontscho
parents: 1797
diff changeset
192 {
1907
83291fafe66c add new features. and fix skin error loop.
pontscho
parents: 1888
diff changeset
193 int ret;
5690
436cf6ef67fd fix skin loading bug
pontscho
parents: 5689
diff changeset
194
1907
83291fafe66c add new features. and fix skin error loop.
pontscho
parents: 1888
diff changeset
195 mainVisible=0;
1800
f5ffb03ebdb5 move skin changing here.
pontscho
parents: 1797
diff changeset
196
1907
83291fafe66c add new features. and fix skin error loop.
pontscho
parents: 1888
diff changeset
197 appInitStruct( &tmpList );
83291fafe66c add new features. and fix skin error loop.
pontscho
parents: 1888
diff changeset
198 skinAppMPlayer=&tmpList;
83291fafe66c add new features. and fix skin error loop.
pontscho
parents: 1888
diff changeset
199 fntFreeFont();
4818
3473ca9ef158 new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents: 4798
diff changeset
200 ret=skinRead( name );
1800
f5ffb03ebdb5 move skin changing here.
pontscho
parents: 1797
diff changeset
201
1907
83291fafe66c add new features. and fix skin error loop.
pontscho
parents: 1888
diff changeset
202 appInitStruct( &tmpList );
83291fafe66c add new features. and fix skin error loop.
pontscho
parents: 1888
diff changeset
203 skinAppMPlayer=&appMPlayer;
83291fafe66c add new features. and fix skin error loop.
pontscho
parents: 1888
diff changeset
204 appInitStruct( &appMPlayer );
4818
3473ca9ef158 new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents: 4798
diff changeset
205 if ( ret ) name=skinName;
3473ca9ef158 new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents: 4798
diff changeset
206 if ( skinRead( name ) )
1907
83291fafe66c add new features. and fix skin error loop.
pontscho
parents: 1888
diff changeset
207 {
83291fafe66c add new features. and fix skin error loop.
pontscho
parents: 1888
diff changeset
208 mainVisible=1;
83291fafe66c add new features. and fix skin error loop.
pontscho
parents: 1888
diff changeset
209 return;
83291fafe66c add new features. and fix skin error loop.
pontscho
parents: 1888
diff changeset
210 }
83291fafe66c add new features. and fix skin error loop.
pontscho
parents: 1888
diff changeset
211 if ( appMPlayer.menuBase.Bitmap.Image )
83291fafe66c add new features. and fix skin error loop.
pontscho
parents: 1888
diff changeset
212 {
83291fafe66c add new features. and fix skin error loop.
pontscho
parents: 1888
diff changeset
213 if ( mplMenuDrawBuffer ) free( mplMenuDrawBuffer );
83291fafe66c add new features. and fix skin error loop.
pontscho
parents: 1888
diff changeset
214 if ( ( mplMenuDrawBuffer = (unsigned char *)calloc( 1,appMPlayer.menuBase.Bitmap.ImageSize ) ) == NULL )
4818
3473ca9ef158 new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents: 4798
diff changeset
215 { mp_msg( MSGT_GPLAYER,MSGL_STATUS,MSGTR_NEMDB ); return; }
1907
83291fafe66c add new features. and fix skin error loop.
pontscho
parents: 1888
diff changeset
216 wsResizeWindow( &appMPlayer.menuWindow,appMPlayer.menuBase.width,appMPlayer.menuBase.height );
83291fafe66c add new features. and fix skin error loop.
pontscho
parents: 1888
diff changeset
217 wsResizeImage( &appMPlayer.menuWindow,appMPlayer.menuBase.width,appMPlayer.menuBase.height );
6221
4b2459557340 add XShape support for gui's submenu
pontscho
parents: 6219
diff changeset
218 wsSetShape( &appMPlayer.menuWindow,appMPlayer.menuBase.Mask.Image );
6089
39c2bfe5c267 small fixes
pontscho
parents: 5997
diff changeset
219 wsVisibleWindow( &appMPlayer.menuWindow,wsHideWindow );
1907
83291fafe66c add new features. and fix skin error loop.
pontscho
parents: 1888
diff changeset
220 }
1800
f5ffb03ebdb5 move skin changing here.
pontscho
parents: 1797
diff changeset
221
2226
9582af160d04 skin chaning bug fix.
pontscho
parents: 2045
diff changeset
222 if ( appMPlayer.sub.Bitmap.Image ) wsResizeImage( &appMPlayer.subWindow,appMPlayer.sub.Bitmap.Width,appMPlayer.sub.Bitmap.Height );
4818
3473ca9ef158 new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents: 4798
diff changeset
223 if ( ( !appMPlayer.subWindow.isFullScreen )&&( !guiIntfStruct.Playing ) )
2226
9582af160d04 skin chaning bug fix.
pontscho
parents: 2045
diff changeset
224 {
9582af160d04 skin chaning bug fix.
pontscho
parents: 2045
diff changeset
225 wsResizeWindow( &appMPlayer.subWindow,appMPlayer.sub.width,appMPlayer.sub.height );
2854
fd44ecf77f8d move bug meg fileload bug fixed asszem.
pontscho
parents: 2447
diff changeset
226 wsMoveWindow( &appMPlayer.subWindow,True,appMPlayer.sub.x,appMPlayer.sub.y );
4818
3473ca9ef158 new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents: 4798
diff changeset
227 }
2226
9582af160d04 skin chaning bug fix.
pontscho
parents: 2045
diff changeset
228 if ( appMPlayer.sub.Bitmap.Image ) wsConvert( &appMPlayer.subWindow,appMPlayer.sub.Bitmap.Image,appMPlayer.sub.Bitmap.ImageSize );
4818
3473ca9ef158 new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents: 4798
diff changeset
229 if ( !guiIntfStruct.Playing )
2226
9582af160d04 skin chaning bug fix.
pontscho
parents: 2045
diff changeset
230 {
4818
3473ca9ef158 new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents: 4798
diff changeset
231 mplSubRender=1;
2911
7a8cc25832fa skin change bug fix
pontscho
parents: 2854
diff changeset
232 wsSetBackgroundRGB( &appMPlayer.subWindow,appMPlayer.subR,appMPlayer.subG,appMPlayer.subB );
2226
9582af160d04 skin chaning bug fix.
pontscho
parents: 2045
diff changeset
233 wsClearWindow( appMPlayer.subWindow );
9582af160d04 skin chaning bug fix.
pontscho
parents: 2045
diff changeset
234 wsPostRedisplay( &appMPlayer.subWindow );
9582af160d04 skin chaning bug fix.
pontscho
parents: 2045
diff changeset
235 }
1866
32b1bb50a0e8 some bug fix, and add decoration item to skin conffile. faszom(C)
pontscho
parents: 1861
diff changeset
236
1907
83291fafe66c add new features. and fix skin error loop.
pontscho
parents: 1888
diff changeset
237 if ( mplDrawBuffer ) free( mplDrawBuffer );
83291fafe66c add new features. and fix skin error loop.
pontscho
parents: 1888
diff changeset
238 if ( ( mplDrawBuffer = (unsigned char *)calloc( 1,appMPlayer.main.Bitmap.ImageSize ) ) == NULL )
4818
3473ca9ef158 new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents: 4798
diff changeset
239 { mp_msg( MSGT_GPLAYER,MSGL_STATUS,MSGTR_NEMDB ); return; }
6146
b9651eb9749e fix some gtk bug...
pontscho
parents: 6089
diff changeset
240
8864
b8c271750450 - sync with x11_common
pontscho
parents: 8484
diff changeset
241 if ( vo_wm_type == vo_wm_Unknown ) wsVisibleWindow( &appMPlayer.mainWindow,wsHideWindow );
1907
83291fafe66c add new features. and fix skin error loop.
pontscho
parents: 1888
diff changeset
242 wsResizeWindow( &appMPlayer.mainWindow,appMPlayer.main.width,appMPlayer.main.height );
2854
fd44ecf77f8d move bug meg fileload bug fixed asszem.
pontscho
parents: 2447
diff changeset
243 wsMoveWindow( &appMPlayer.mainWindow,True,appMPlayer.main.x,appMPlayer.main.y );
1907
83291fafe66c add new features. and fix skin error loop.
pontscho
parents: 1888
diff changeset
244 wsResizeImage( &appMPlayer.mainWindow,appMPlayer.main.width,appMPlayer.main.height );
83291fafe66c add new features. and fix skin error loop.
pontscho
parents: 1888
diff changeset
245 wsSetShape( &appMPlayer.mainWindow,appMPlayer.main.Mask.Image );
2979
6d341644ee28 smal; bugfix for main redraw
pontscho
parents: 2911
diff changeset
246 wsWindowDecoration( &appMPlayer.mainWindow,appMPlayer.mainDecoration );
1907
83291fafe66c add new features. and fix skin error loop.
pontscho
parents: 1888
diff changeset
247 mainVisible=1; mplMainRender=1; wsPostRedisplay( &appMPlayer.mainWindow );
83291fafe66c add new features. and fix skin error loop.
pontscho
parents: 1888
diff changeset
248 wsVisibleWindow( &appMPlayer.mainWindow,wsShowWindow );
4818
3473ca9ef158 new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents: 4798
diff changeset
249
3473ca9ef158 new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents: 4798
diff changeset
250 btnModify( evSetVolume,guiIntfStruct.Volume );
3473ca9ef158 new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents: 4798
diff changeset
251 btnModify( evSetBalance,guiIntfStruct.Balance );
3473ca9ef158 new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents: 4798
diff changeset
252 btnModify( evSetMoviePosition,guiIntfStruct.Position );
3479
2704448de713 fs button bug fix
pontscho
parents: 2979
diff changeset
253 btnModify( evFullScreen,!appMPlayer.subWindow.isFullScreen );
1800
f5ffb03ebdb5 move skin changing here.
pontscho
parents: 1797
diff changeset
254 }
1802
82e77faa7341 async reply fix ?
pontscho
parents: 1800
diff changeset
255
7009
98bed9e12087 - add dxr3 gui support (dialogbox, etc.)
pontscho
parents: 6996
diff changeset
256 void mplSetFileName( char * dir,char * name,int type )
2854
fd44ecf77f8d move bug meg fileload bug fixed asszem.
pontscho
parents: 2447
diff changeset
257 {
6967
0fa27966ac47 add xdnd support (from Gregory Kovriga <gkovriga@techunix.technion.ac.il>) and fix -subdelay bug
pontscho
parents: 6912
diff changeset
258 if ( !name ) return;
0fa27966ac47 add xdnd support (from Gregory Kovriga <gkovriga@techunix.technion.ac.il>) and fix -subdelay bug
pontscho
parents: 6912
diff changeset
259
0fa27966ac47 add xdnd support (from Gregory Kovriga <gkovriga@techunix.technion.ac.il>) and fix -subdelay bug
pontscho
parents: 6912
diff changeset
260 if ( !dir ) guiSetFilename( guiIntfStruct.Filename,name )
8423
c6a1a5b6ba25 - fix three submenu bug
pontscho
parents: 8280
diff changeset
261 else guiSetDF( guiIntfStruct.Filename,dir,name );
6967
0fa27966ac47 add xdnd support (from Gregory Kovriga <gkovriga@techunix.technion.ac.il>) and fix -subdelay bug
pontscho
parents: 6912
diff changeset
262
8423
c6a1a5b6ba25 - fix three submenu bug
pontscho
parents: 8280
diff changeset
263 // filename=guiIntfStruct.Filename;
7009
98bed9e12087 - add dxr3 gui support (dialogbox, etc.)
pontscho
parents: 6996
diff changeset
264 guiIntfStruct.StreamType=type;
6794
77980ab4e296 - add preferences support (first try)
pontscho
parents: 6713
diff changeset
265 gfree( (void **)&guiIntfStruct.AudioFile );
77980ab4e296 - add preferences support (first try)
pontscho
parents: 6713
diff changeset
266 gfree( (void **)&guiIntfStruct.Subtitlename );
2854
fd44ecf77f8d move bug meg fileload bug fixed asszem.
pontscho
parents: 2447
diff changeset
267 }
5689
2077782d0ca9 add prev/next title feature for gui dvd support
pontscho
parents: 5665
diff changeset
268
2077782d0ca9 add prev/next title feature for gui dvd support
pontscho
parents: 5665
diff changeset
269 void mplPrev( void )
2077782d0ca9 add prev/next title feature for gui dvd support
pontscho
parents: 5665
diff changeset
270 {
6713
cc917a581b6e add simple playlist support
pontscho
parents: 6280
diff changeset
271 plItem * prev;
cc917a581b6e add simple playlist support
pontscho
parents: 6280
diff changeset
272 int stop = 0;
6280
cf2c2b92d1a7 add VCD support for GUI
pontscho
parents: 6221
diff changeset
273
cf2c2b92d1a7 add VCD support for GUI
pontscho
parents: 6221
diff changeset
274 if ( guiIntfStruct.Playing == 2 ) return;
5689
2077782d0ca9 add prev/next title feature for gui dvd support
pontscho
parents: 5665
diff changeset
275 switch ( guiIntfStruct.StreamType )
2077782d0ca9 add prev/next title feature for gui dvd support
pontscho
parents: 5665
diff changeset
276 {
5701
67f0194f3a8c fix compile bug
pontscho
parents: 5690
diff changeset
277 #ifdef USE_DVDREAD
5689
2077782d0ca9 add prev/next title feature for gui dvd support
pontscho
parents: 5665
diff changeset
278 case STREAMTYPE_DVD:
2077782d0ca9 add prev/next title feature for gui dvd support
pontscho
parents: 5665
diff changeset
279 if ( --guiIntfStruct.DVD.current_chapter == 0 )
2077782d0ca9 add prev/next title feature for gui dvd support
pontscho
parents: 5665
diff changeset
280 {
2077782d0ca9 add prev/next title feature for gui dvd support
pontscho
parents: 5665
diff changeset
281 guiIntfStruct.DVD.current_chapter=1;
2077782d0ca9 add prev/next title feature for gui dvd support
pontscho
parents: 5665
diff changeset
282 if ( --guiIntfStruct.DVD.current_title <= 0 ) { guiIntfStruct.DVD.current_title=1; stop=1; }
2077782d0ca9 add prev/next title feature for gui dvd support
pontscho
parents: 5665
diff changeset
283 }
2077782d0ca9 add prev/next title feature for gui dvd support
pontscho
parents: 5665
diff changeset
284 guiIntfStruct.Track=guiIntfStruct.DVD.current_title;
2077782d0ca9 add prev/next title feature for gui dvd support
pontscho
parents: 5665
diff changeset
285 break;
5701
67f0194f3a8c fix compile bug
pontscho
parents: 5690
diff changeset
286 #endif
6280
cf2c2b92d1a7 add VCD support for GUI
pontscho
parents: 6221
diff changeset
287 #ifdef HAVE_VCD
cf2c2b92d1a7 add VCD support for GUI
pontscho
parents: 6221
diff changeset
288 case STREAMTYPE_VCD:
cf2c2b92d1a7 add VCD support for GUI
pontscho
parents: 6221
diff changeset
289 if ( --guiIntfStruct.Track == 0 ) { guiIntfStruct.Track=1; stop=1; }
cf2c2b92d1a7 add VCD support for GUI
pontscho
parents: 6221
diff changeset
290 break;
cf2c2b92d1a7 add VCD support for GUI
pontscho
parents: 6221
diff changeset
291 #endif
6713
cc917a581b6e add simple playlist support
pontscho
parents: 6280
diff changeset
292 default:
6794
77980ab4e296 - add preferences support (first try)
pontscho
parents: 6713
diff changeset
293 if ( (prev=gtkSet( gtkGetPrevPlItem,0,NULL)) )
77980ab4e296 - add preferences support (first try)
pontscho
parents: 6713
diff changeset
294 {
7009
98bed9e12087 - add dxr3 gui support (dialogbox, etc.)
pontscho
parents: 6996
diff changeset
295 mplSetFileName( prev->path,prev->name,STREAMTYPE_FILE );
6794
77980ab4e296 - add preferences support (first try)
pontscho
parents: 6713
diff changeset
296 mplGotoTheNext=0;
77980ab4e296 - add preferences support (first try)
pontscho
parents: 6713
diff changeset
297 break;
77980ab4e296 - add preferences support (first try)
pontscho
parents: 6713
diff changeset
298 }
6713
cc917a581b6e add simple playlist support
pontscho
parents: 6280
diff changeset
299 return;
5689
2077782d0ca9 add prev/next title feature for gui dvd support
pontscho
parents: 5665
diff changeset
300 }
6280
cf2c2b92d1a7 add VCD support for GUI
pontscho
parents: 6221
diff changeset
301 if ( stop ) mplEventHandling( evStop,0 );
cf2c2b92d1a7 add VCD support for GUI
pontscho
parents: 6221
diff changeset
302 if ( guiIntfStruct.Playing == 1 ) mplEventHandling( evPlay,0 );
5689
2077782d0ca9 add prev/next title feature for gui dvd support
pontscho
parents: 5665
diff changeset
303 }
2077782d0ca9 add prev/next title feature for gui dvd support
pontscho
parents: 5665
diff changeset
304
2077782d0ca9 add prev/next title feature for gui dvd support
pontscho
parents: 5665
diff changeset
305 void mplNext( void )
2077782d0ca9 add prev/next title feature for gui dvd support
pontscho
parents: 5665
diff changeset
306 {
6713
cc917a581b6e add simple playlist support
pontscho
parents: 6280
diff changeset
307 int stop = 0;
cc917a581b6e add simple playlist support
pontscho
parents: 6280
diff changeset
308 plItem * next;
6280
cf2c2b92d1a7 add VCD support for GUI
pontscho
parents: 6221
diff changeset
309
cf2c2b92d1a7 add VCD support for GUI
pontscho
parents: 6221
diff changeset
310 if ( guiIntfStruct.Playing == 2 ) return;
5689
2077782d0ca9 add prev/next title feature for gui dvd support
pontscho
parents: 5665
diff changeset
311 switch ( guiIntfStruct.StreamType )
2077782d0ca9 add prev/next title feature for gui dvd support
pontscho
parents: 5665
diff changeset
312 {
5701
67f0194f3a8c fix compile bug
pontscho
parents: 5690
diff changeset
313 #ifdef USE_DVDREAD
5689
2077782d0ca9 add prev/next title feature for gui dvd support
pontscho
parents: 5665
diff changeset
314 case STREAMTYPE_DVD:
2077782d0ca9 add prev/next title feature for gui dvd support
pontscho
parents: 5665
diff changeset
315 if ( guiIntfStruct.DVD.current_chapter++ == guiIntfStruct.DVD.chapters )
2077782d0ca9 add prev/next title feature for gui dvd support
pontscho
parents: 5665
diff changeset
316 {
2077782d0ca9 add prev/next title feature for gui dvd support
pontscho
parents: 5665
diff changeset
317 guiIntfStruct.DVD.current_chapter=1;
2077782d0ca9 add prev/next title feature for gui dvd support
pontscho
parents: 5665
diff changeset
318 if ( ++guiIntfStruct.DVD.current_title > guiIntfStruct.DVD.titles ) { guiIntfStruct.DVD.current_title=guiIntfStruct.DVD.titles; stop=1; }
2077782d0ca9 add prev/next title feature for gui dvd support
pontscho
parents: 5665
diff changeset
319 }
2077782d0ca9 add prev/next title feature for gui dvd support
pontscho
parents: 5665
diff changeset
320 guiIntfStruct.Track=guiIntfStruct.DVD.current_title;
2077782d0ca9 add prev/next title feature for gui dvd support
pontscho
parents: 5665
diff changeset
321 break;
5701
67f0194f3a8c fix compile bug
pontscho
parents: 5690
diff changeset
322 #endif
6280
cf2c2b92d1a7 add VCD support for GUI
pontscho
parents: 6221
diff changeset
323 #ifdef HAVE_VCD
cf2c2b92d1a7 add VCD support for GUI
pontscho
parents: 6221
diff changeset
324 case STREAMTYPE_VCD:
cf2c2b92d1a7 add VCD support for GUI
pontscho
parents: 6221
diff changeset
325 if ( ++guiIntfStruct.Track > guiIntfStruct.VCDTracks ) { guiIntfStruct.Track=guiIntfStruct.VCDTracks; stop=1; }
cf2c2b92d1a7 add VCD support for GUI
pontscho
parents: 6221
diff changeset
326 break;
cf2c2b92d1a7 add VCD support for GUI
pontscho
parents: 6221
diff changeset
327 #endif
6713
cc917a581b6e add simple playlist support
pontscho
parents: 6280
diff changeset
328 default:
6794
77980ab4e296 - add preferences support (first try)
pontscho
parents: 6713
diff changeset
329 if ( (next=gtkSet( gtkGetNextPlItem,0,NULL)) )
77980ab4e296 - add preferences support (first try)
pontscho
parents: 6713
diff changeset
330 {
7009
98bed9e12087 - add dxr3 gui support (dialogbox, etc.)
pontscho
parents: 6996
diff changeset
331 mplSetFileName( next->path,next->name,STREAMTYPE_FILE );
6794
77980ab4e296 - add preferences support (first try)
pontscho
parents: 6713
diff changeset
332 mplGotoTheNext=0;
77980ab4e296 - add preferences support (first try)
pontscho
parents: 6713
diff changeset
333 break;
77980ab4e296 - add preferences support (first try)
pontscho
parents: 6713
diff changeset
334 }
6713
cc917a581b6e add simple playlist support
pontscho
parents: 6280
diff changeset
335 return;
5689
2077782d0ca9 add prev/next title feature for gui dvd support
pontscho
parents: 5665
diff changeset
336 }
6280
cf2c2b92d1a7 add VCD support for GUI
pontscho
parents: 6221
diff changeset
337 if ( stop ) mplEventHandling( evStop,0 );
cf2c2b92d1a7 add VCD support for GUI
pontscho
parents: 6221
diff changeset
338 if ( guiIntfStruct.Playing == 1 ) mplEventHandling( evPlay,0 );
5689
2077782d0ca9 add prev/next title feature for gui dvd support
pontscho
parents: 5665
diff changeset
339 }