Mercurial > mplayer.hg
annotate mplayer.h @ 9278:caea8ed36b48
The reason why mplayer crashes (in some cases) when using x11
output and -wid (>0) parameter is this:
Mplayer by default creates a colormap using DirectColor visual. If the
window given to mplayer uses TrueColor visual there will be an error
when mplayer sets the colormap for the window. This patch
modifies mplayer to use TrueColor visual if the window given to mplayer
uses TrueColor. Another solution is to make sure that the window given to
mplayer is created using DirectColor visual if it is supported by the
display.
Jouni Tulkki <jitulkki@cc.hut.fi>
author | arpi |
---|---|
date | Tue, 04 Feb 2003 18:31:44 +0000 |
parents | 3086611e8213 |
children | 27fff718ede6 |
rev | line source |
---|---|
724 | 1 |
2 #ifndef __MPLAYER_MAIN | |
3 #define __MPLAYER_MAIN | |
4 | |
7150 | 5 #include "libvo/sub.h" |
6 #include "subreader.h" | |
7 | |
4798 | 8 extern int use_gui; |
4818
3473ca9ef158
new gui interface, and gtk moved into mplayer process. fork ... bleh :)
pontscho
parents:
4798
diff
changeset
|
9 extern char* current_module; |
6280 | 10 extern int vcd_track; |
724 | 11 |
8933
bfe1b826cff1
add DVD and CDRom device entry's, and fix two 10l bug
pontscho
parents:
8717
diff
changeset
|
12 extern char * dvd_device; |
bfe1b826cff1
add DVD and CDRom device entry's, and fix two 10l bug
pontscho
parents:
8717
diff
changeset
|
13 extern char * cdrom_device; |
bfe1b826cff1
add DVD and CDRom device entry's, and fix two 10l bug
pontscho
parents:
8717
diff
changeset
|
14 |
7526 | 15 extern char ** audio_fm_list; |
16 extern char ** video_fm_list; | |
7582 | 17 extern char ** video_driver_list; |
18 extern char ** audio_driver_list; | |
6796 | 19 extern char * video_driver; |
20 extern char * audio_driver; | |
21 extern float audio_delay; | |
22 | |
6619
f554e7271587
fix volume handling ( step 2 ) -- add balance support and some code cleanup and fix
pontscho
parents:
6335
diff
changeset
|
23 extern int osd_level; |
f554e7271587
fix volume handling ( step 2 ) -- add balance support and some code cleanup and fix
pontscho
parents:
6335
diff
changeset
|
24 extern int osd_visible; |
f554e7271587
fix volume handling ( step 2 ) -- add balance support and some code cleanup and fix
pontscho
parents:
6335
diff
changeset
|
25 |
6796 | 26 extern char * font_name; |
27 extern float font_factor; | |
7541 | 28 extern float movie_aspect; |
9055 | 29 extern float force_fps; |
6796 | 30 |
6627 | 31 extern char * sub_name; |
6796 | 32 extern float sub_delay; |
33 extern float sub_fps; | |
34 extern int sub_auto; | |
7019 | 35 extern int sub_pos; |
36 extern int sub_unicode; | |
9056 | 37 extern char * sub_cp; |
7150 | 38 extern subtitle* subtitles; |
39 extern subtitle* vo_sub; | |
8717 | 40 extern int suboverlap_enabled; |
6796 | 41 |
6627 | 42 extern char * filename; |
43 | |
7526 | 44 extern int stream_cache_size; |
7019 | 45 extern int force_ni; |
46 extern int index_mode; | |
8311 | 47 extern int autosync; |
7559
b645204ea527
some cleanup - made private vars/funcs static, removed obsolete externs
arpi
parents:
7541
diff
changeset
|
48 |
b645204ea527
some cleanup - made private vars/funcs static, removed obsolete externs
arpi
parents:
7541
diff
changeset
|
49 // libmpcodecs: |
b645204ea527
some cleanup - made private vars/funcs static, removed obsolete externs
arpi
parents:
7541
diff
changeset
|
50 extern int fullscreen; |
b645204ea527
some cleanup - made private vars/funcs static, removed obsolete externs
arpi
parents:
7541
diff
changeset
|
51 extern int flip; |
b645204ea527
some cleanup - made private vars/funcs static, removed obsolete externs
arpi
parents:
7541
diff
changeset
|
52 |
7019 | 53 extern int frame_dropping; |
54 | |
55 extern int auto_quality; | |
56 | |
7821
1efdf16883a0
add and extended Gregory Kovriga's <gkovriga@techunix.technion.ac.il> patch
pontscho
parents:
7582
diff
changeset
|
57 extern int audio_id; |
1efdf16883a0
add and extended Gregory Kovriga's <gkovriga@techunix.technion.ac.il> patch
pontscho
parents:
7582
diff
changeset
|
58 extern int video_id; |
1efdf16883a0
add and extended Gregory Kovriga's <gkovriga@techunix.technion.ac.il> patch
pontscho
parents:
7582
diff
changeset
|
59 extern int dvdsub_id; |
8423 | 60 extern int vobsub_id; |
7821
1efdf16883a0
add and extended Gregory Kovriga's <gkovriga@techunix.technion.ac.il> patch
pontscho
parents:
7582
diff
changeset
|
61 |
5919 | 62 extern void exit_player(char* how); |
63 | |
6335
e9bd97d5c5cc
warning & newline fixes by Dominik Mierzejewski <dominik@rangers.eu.org>
arpi
parents:
6280
diff
changeset
|
64 #endif |