annotate mplayer.h @ 36406:c918845d0d9a

mplayer: Fix a crash seeking with -chapter and -ass When seeking to chapter on startup the mpctx->d_sub member is not yet initialized. Do not access it in that case. The commit r31293 that introduced that code explains that it is for handling backward seeking correctly. So it should not be needed on startup forward seek situation.
author al
date Fri, 08 Nov 2013 21:06:40 +0000
parents 3be3990375da
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
30429
c1a3f1bbba26 Add license header to all top-level files missing them.
diego
parents: 28051
diff changeset
1 /*
c1a3f1bbba26 Add license header to all top-level files missing them.
diego
parents: 28051
diff changeset
2 * This file is part of MPlayer.
c1a3f1bbba26 Add license header to all top-level files missing them.
diego
parents: 28051
diff changeset
3 *
c1a3f1bbba26 Add license header to all top-level files missing them.
diego
parents: 28051
diff changeset
4 * MPlayer is free software; you can redistribute it and/or modify
c1a3f1bbba26 Add license header to all top-level files missing them.
diego
parents: 28051
diff changeset
5 * it under the terms of the GNU General Public License as published by
c1a3f1bbba26 Add license header to all top-level files missing them.
diego
parents: 28051
diff changeset
6 * the Free Software Foundation; either version 2 of the License, or
c1a3f1bbba26 Add license header to all top-level files missing them.
diego
parents: 28051
diff changeset
7 * (at your option) any later version.
c1a3f1bbba26 Add license header to all top-level files missing them.
diego
parents: 28051
diff changeset
8 *
c1a3f1bbba26 Add license header to all top-level files missing them.
diego
parents: 28051
diff changeset
9 * MPlayer is distributed in the hope that it will be useful,
c1a3f1bbba26 Add license header to all top-level files missing them.
diego
parents: 28051
diff changeset
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
c1a3f1bbba26 Add license header to all top-level files missing them.
diego
parents: 28051
diff changeset
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
c1a3f1bbba26 Add license header to all top-level files missing them.
diego
parents: 28051
diff changeset
12 * GNU General Public License for more details.
c1a3f1bbba26 Add license header to all top-level files missing them.
diego
parents: 28051
diff changeset
13 *
c1a3f1bbba26 Add license header to all top-level files missing them.
diego
parents: 28051
diff changeset
14 * You should have received a copy of the GNU General Public License along
c1a3f1bbba26 Add license header to all top-level files missing them.
diego
parents: 28051
diff changeset
15 * with MPlayer; if not, write to the Free Software Foundation, Inc.,
c1a3f1bbba26 Add license header to all top-level files missing them.
diego
parents: 28051
diff changeset
16 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
c1a3f1bbba26 Add license header to all top-level files missing them.
diego
parents: 28051
diff changeset
17 */
724
pontscho
parents:
diff changeset
18
26029
4129c8cfa742 Add MPLAYER_ prefix to multiple inclusion guards.
diego
parents: 25965
diff changeset
19 #ifndef MPLAYER_MPLAYER_H
4129c8cfa742 Add MPLAYER_ prefix to multiple inclusion guards.
diego
parents: 25965
diff changeset
20 #define MPLAYER_MPLAYER_H
724
pontscho
parents:
diff changeset
21
32044
8108f92eddd9 cosmetics: reorder declarations, prettyprinting
diego
parents: 32043
diff changeset
22 extern char *filename;
8108f92eddd9 cosmetics: reorder declarations, prettyprinting
diego
parents: 32043
diff changeset
23 extern char *current_module;
8108f92eddd9 cosmetics: reorder declarations, prettyprinting
diego
parents: 32043
diff changeset
24 extern char **audio_fm_list;
8108f92eddd9 cosmetics: reorder declarations, prettyprinting
diego
parents: 32043
diff changeset
25 extern char **video_fm_list;
8108f92eddd9 cosmetics: reorder declarations, prettyprinting
diego
parents: 32043
diff changeset
26 extern char **video_driver_list;
8108f92eddd9 cosmetics: reorder declarations, prettyprinting
diego
parents: 32043
diff changeset
27 extern char **audio_driver_list;
6796
9c828335b2d0 add preferences to gui
pontscho
parents: 6627
diff changeset
28
6619
f554e7271587 fix volume handling ( step 2 ) -- add balance support and some code cleanup and fix
pontscho
parents: 6335
diff changeset
29 extern int osd_level;
18287
292337d09af2 Remove updating of vo_mouse_timer_const from the main loop and also
uau
parents: 17566
diff changeset
30 extern unsigned int osd_visible;
32044
8108f92eddd9 cosmetics: reorder declarations, prettyprinting
diego
parents: 32043
diff changeset
31 extern int autosync;
8108f92eddd9 cosmetics: reorder declarations, prettyprinting
diego
parents: 32043
diff changeset
32 extern int frame_dropping;
32054
c3c015112837 Move slave_mode extern declaration to mplayer.h, where it belongs.
diego
parents: 32044
diff changeset
33 extern int slave_mode;
33476
d068eac6cbf9 Make option '-noidle' working for the GUI.
ib
parents: 32438
diff changeset
34 extern int player_idle_mode;
32031
d1e3a6f7d48a Move use_menu extern declaration to mplayer.h, where it belongs.
diego
parents: 32030
diff changeset
35 extern int use_menu;
36005
3be3990375da Add -heartbeat-interval option.
reimar
parents: 34686
diff changeset
36 extern float heartbeat_interval;
32044
8108f92eddd9 cosmetics: reorder declarations, prettyprinting
diego
parents: 32043
diff changeset
37
8108f92eddd9 cosmetics: reorder declarations, prettyprinting
diego
parents: 32043
diff changeset
38 extern float audio_delay;
31956
a6c25d94e60e Add new slave mode command for loading EDL file on demand.
reynaldo
parents: 31489
diff changeset
39 extern double start_pts;
34686
ff81a1db421e Allow to set the OST progress position.
cigaes
parents: 33476
diff changeset
40 extern int progbar_align;
7019
e37a67d5e117 fix (?) cmd line handling
pontscho
parents: 6796
diff changeset
41
32030
c2d9c19985cb Move **sub_name extern declaration to mplayer.h, where it belongs.
diego
parents: 31956
diff changeset
42 /* for the GUI */
7019
e37a67d5e117 fix (?) cmd line handling
pontscho
parents: 6796
diff changeset
43 extern int auto_quality;
32066
8d92770a9c7b Move disable_gui_conf extern var declaration to mplayer.h, where it belongs.
diego
parents: 32054
diff changeset
44 extern int disable_gui_conf;
32438
faefba58f413 Implement a basic capture feature, available through -capture.
diego
parents: 32066
diff changeset
45
faefba58f413 Implement a basic capture feature, available through -capture.
diego
parents: 32066
diff changeset
46 extern int capture_dump;
32040
fb341240a2a8 Move stream_dump_type extern declaration to mplayer.h, where it belongs.
diego
parents: 32032
diff changeset
47 extern int stream_dump_type;
32438
faefba58f413 Implement a basic capture feature, available through -capture.
diego
parents: 32066
diff changeset
48 extern char *stream_dump_name;
7019
e37a67d5e117 fix (?) cmd line handling
pontscho
parents: 6796
diff changeset
49
28051
9e739bdb049c Get rid of pointless 'extern' keywords.
diego
parents: 26029
diff changeset
50 void update_set_of_subtitles(void);
5919
60cf2bca993f some bug fix
pontscho
parents: 4981
diff changeset
51
26029
4129c8cfa742 Add MPLAYER_ prefix to multiple inclusion guards.
diego
parents: 25965
diff changeset
52 #endif /* MPLAYER_MPLAYER_H */