annotate input/mouse.h @ 18708:9e2b300db17b

Change free_sh_audio() to take demuxer and stream id as parameters (same as new_sh_audio()) instead of sh_audio_t *, use those to remove the pointer from demuxer->a_streams[] before freeing it. Some demuxers use free_sh_audio() to undo the creation of an already-allocated audio stream in case of error. These uses were unsafe since free_sh_audio() freed the data structure but left the pointer in demuxer->a_streams[], leading to double free later in free_demuxer() (and perhaps use of the freed stream before that, I didn't check).
author uau
date Wed, 14 Jun 2006 14:05:59 +0000
parents 62d979592493
children 6ac1ece1f9fe
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
4589
4ce20c55a18a Added support for key combination and mouse buttons key code
albeu
parents:
diff changeset
1
4ce20c55a18a Added support for key combination and mouse buttons key code
albeu
parents:
diff changeset
2
4657
610a11e4db36 Added key autorepeat support. Options to enable/disable joystick and lirc
albeu
parents: 4589
diff changeset
3 #define MOUSE_BASE ((0x100+256)|MP_NO_REPEAT_KEY)
4589
4ce20c55a18a Added support for key combination and mouse buttons key code
albeu
parents:
diff changeset
4 #define MOUSE_BTN0 (MOUSE_BASE+0)
4ce20c55a18a Added support for key combination and mouse buttons key code
albeu
parents:
diff changeset
5 #define MOUSE_BTN1 (MOUSE_BASE+1)
4ce20c55a18a Added support for key combination and mouse buttons key code
albeu
parents:
diff changeset
6 #define MOUSE_BTN2 (MOUSE_BASE+2)
4ce20c55a18a Added support for key combination and mouse buttons key code
albeu
parents:
diff changeset
7 #define MOUSE_BTN3 (MOUSE_BASE+3)
4ce20c55a18a Added support for key combination and mouse buttons key code
albeu
parents:
diff changeset
8 #define MOUSE_BTN4 (MOUSE_BASE+4)
4ce20c55a18a Added support for key combination and mouse buttons key code
albeu
parents:
diff changeset
9 #define MOUSE_BTN5 (MOUSE_BASE+5)
4ce20c55a18a Added support for key combination and mouse buttons key code
albeu
parents:
diff changeset
10 #define MOUSE_BTN6 (MOUSE_BASE+6)
4ce20c55a18a Added support for key combination and mouse buttons key code
albeu
parents:
diff changeset
11 #define MOUSE_BTN7 (MOUSE_BASE+7)
4ce20c55a18a Added support for key combination and mouse buttons key code
albeu
parents:
diff changeset
12 #define MOUSE_BTN8 (MOUSE_BASE+8)
4ce20c55a18a Added support for key combination and mouse buttons key code
albeu
parents:
diff changeset
13 #define MOUSE_BTN9 (MOUSE_BASE+9)
16974
62d979592493 Add double-click mouse events.
joey
parents: 4657
diff changeset
14
62d979592493 Add double-click mouse events.
joey
parents: 4657
diff changeset
15 #define MOUSE_BASE_DBL (0x300|MP_NO_REPEAT_KEY)
62d979592493 Add double-click mouse events.
joey
parents: 4657
diff changeset
16 #define MOUSE_BTN0_DBL (MOUSE_BASE_DBL+0)
62d979592493 Add double-click mouse events.
joey
parents: 4657
diff changeset
17 #define MOUSE_BTN1_DBL (MOUSE_BASE_DBL+1)
62d979592493 Add double-click mouse events.
joey
parents: 4657
diff changeset
18 #define MOUSE_BTN2_DBL (MOUSE_BASE_DBL+2)
62d979592493 Add double-click mouse events.
joey
parents: 4657
diff changeset
19 #define MOUSE_BTN3_DBL (MOUSE_BASE_DBL+3)
62d979592493 Add double-click mouse events.
joey
parents: 4657
diff changeset
20 #define MOUSE_BTN4_DBL (MOUSE_BASE_DBL+4)
62d979592493 Add double-click mouse events.
joey
parents: 4657
diff changeset
21 #define MOUSE_BTN5_DBL (MOUSE_BASE_DBL+5)
62d979592493 Add double-click mouse events.
joey
parents: 4657
diff changeset
22 #define MOUSE_BTN6_DBL (MOUSE_BASE_DBL+6)
62d979592493 Add double-click mouse events.
joey
parents: 4657
diff changeset
23 #define MOUSE_BTN7_DBL (MOUSE_BASE_DBL+7)
62d979592493 Add double-click mouse events.
joey
parents: 4657
diff changeset
24 #define MOUSE_BTN8_DBL (MOUSE_BASE_DBL+8)
62d979592493 Add double-click mouse events.
joey
parents: 4657
diff changeset
25 #define MOUSE_BTN9_DBL (MOUSE_BASE_DBL+9)