Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-gpu
Commits
3d432688
Commit
3d432688
authored
Jul 23, 2011
by
Felix Paul Kühne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
macosx: fixed a 300 byte memory leak
parent
37d21af0
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
67 additions
and
16 deletions
+67
-16
modules/gui/macosx/MainMenu.m
modules/gui/macosx/MainMenu.m
+64
-16
modules/gui/macosx/VideoEffects.m
modules/gui/macosx/VideoEffects.m
+3
-0
No files found.
modules/gui/macosx/MainMenu.m
View file @
3d432688
...
@@ -101,6 +101,7 @@ static VLCMainMenu *_o_sharedInstance = nil;
...
@@ -101,6 +101,7 @@ static VLCMainMenu *_o_sharedInstance = nil;
playlist_t
*
p_playlist
;
playlist_t
*
p_playlist
;
vlc_value_t
val
;
vlc_value_t
val
;
id
o_vlcmain
=
[
VLCMain
sharedInstance
];
id
o_vlcmain
=
[
VLCMain
sharedInstance
];
char
*
key
;
/* Check if we already did this once. Opening the other nibs calls it too,
/* Check if we already did this once. Opening the other nibs calls it too,
because VLCMain is the owner */
because VLCMain is the owner */
...
@@ -108,54 +109,101 @@ static VLCMainMenu *_o_sharedInstance = nil;
...
@@ -108,54 +109,101 @@ static VLCMainMenu *_o_sharedInstance = nil;
[
self
initStrings
];
[
self
initStrings
];
o_key
=
[
NSString
stringWithFormat
:
@"%s"
,
config_GetPsz
(
p_intf
,
"key-quit"
)];
key
=
config_GetPsz
(
p_intf
,
"key-quit"
);
o_key
=
[
NSString
stringWithFormat
:
@"%s"
,
key
];
[
o_mi_quit
setKeyEquivalent
:
[
o_vlcmain
VLCKeyToString
:
o_key
]];
[
o_mi_quit
setKeyEquivalent
:
[
o_vlcmain
VLCKeyToString
:
o_key
]];
[
o_mi_quit
setKeyEquivalentModifierMask
:
[
o_vlcmain
VLCModifiersToCocoa
:
o_key
]];
[
o_mi_quit
setKeyEquivalentModifierMask
:
[
o_vlcmain
VLCModifiersToCocoa
:
o_key
]];
o_key
=
[
NSString
stringWithFormat
:
@"%s"
,
config_GetPsz
(
p_intf
,
"key-play-pause"
)];
FREENULL
(
key
);
key
=
config_GetPsz
(
p_intf
,
"key-play-pause"
);
o_key
=
[
NSString
stringWithFormat
:
@"%s"
,
key
];
[
o_mi_play
setKeyEquivalent
:
[
o_vlcmain
VLCKeyToString
:
o_key
]];
[
o_mi_play
setKeyEquivalent
:
[
o_vlcmain
VLCKeyToString
:
o_key
]];
[
o_mi_play
setKeyEquivalentModifierMask
:
[
o_vlcmain
VLCModifiersToCocoa
:
o_key
]];
[
o_mi_play
setKeyEquivalentModifierMask
:
[
o_vlcmain
VLCModifiersToCocoa
:
o_key
]];
o_key
=
[
NSString
stringWithFormat
:
@"%s"
,
config_GetPsz
(
p_intf
,
"key-stop"
)];
FREENULL
(
key
);
key
=
config_GetPsz
(
p_intf
,
"key-stop"
);
o_key
=
[
NSString
stringWithFormat
:
@"%s"
,
key
];
[
o_mi_stop
setKeyEquivalent
:
[
o_vlcmain
VLCKeyToString
:
o_key
]];
[
o_mi_stop
setKeyEquivalent
:
[
o_vlcmain
VLCKeyToString
:
o_key
]];
[
o_mi_stop
setKeyEquivalentModifierMask
:
[
o_vlcmain
VLCModifiersToCocoa
:
o_key
]];
[
o_mi_stop
setKeyEquivalentModifierMask
:
[
o_vlcmain
VLCModifiersToCocoa
:
o_key
]];
o_key
=
[
NSString
stringWithFormat
:
@"%s"
,
config_GetPsz
(
p_intf
,
"key-prev"
)];
FREENULL
(
key
);
key
=
config_GetPsz
(
p_intf
,
"key-prev"
);
o_key
=
[
NSString
stringWithFormat
:
@"%s"
,
key
];
[
o_mi_previous
setKeyEquivalent
:
[
o_vlcmain
VLCKeyToString
:
o_key
]];
[
o_mi_previous
setKeyEquivalent
:
[
o_vlcmain
VLCKeyToString
:
o_key
]];
[
o_mi_previous
setKeyEquivalentModifierMask
:
[
o_vlcmain
VLCModifiersToCocoa
:
o_key
]];
[
o_mi_previous
setKeyEquivalentModifierMask
:
[
o_vlcmain
VLCModifiersToCocoa
:
o_key
]];
o_key
=
[
NSString
stringWithFormat
:
@"%s"
,
config_GetPsz
(
p_intf
,
"key-next"
)];
FREENULL
(
key
);
key
=
config_GetPsz
(
p_intf
,
"key-next"
);
o_key
=
[
NSString
stringWithFormat
:
@"%s"
,
key
];
[
o_mi_next
setKeyEquivalent
:
[
o_vlcmain
VLCKeyToString
:
o_key
]];
[
o_mi_next
setKeyEquivalent
:
[
o_vlcmain
VLCKeyToString
:
o_key
]];
[
o_mi_next
setKeyEquivalentModifierMask
:
[
o_vlcmain
VLCModifiersToCocoa
:
o_key
]];
[
o_mi_next
setKeyEquivalentModifierMask
:
[
o_vlcmain
VLCModifiersToCocoa
:
o_key
]];
o_key
=
[
NSString
stringWithFormat
:
@"%s"
,
config_GetPsz
(
p_intf
,
"key-jump+short"
)];
FREENULL
(
key
);
key
=
config_GetPsz
(
p_intf
,
"key-jump+short"
);
o_key
=
[
NSString
stringWithFormat
:
@"%s"
,
key
];
[
o_mi_fwd
setKeyEquivalent
:
[
o_vlcmain
VLCKeyToString
:
o_key
]];
[
o_mi_fwd
setKeyEquivalent
:
[
o_vlcmain
VLCKeyToString
:
o_key
]];
[
o_mi_fwd
setKeyEquivalentModifierMask
:
[
o_vlcmain
VLCModifiersToCocoa
:
o_key
]];
[
o_mi_fwd
setKeyEquivalentModifierMask
:
[
o_vlcmain
VLCModifiersToCocoa
:
o_key
]];
o_key
=
[
NSString
stringWithFormat
:
@"%s"
,
config_GetPsz
(
p_intf
,
"key-jump-short"
)];
FREENULL
(
key
);
key
=
config_GetPsz
(
p_intf
,
"key-jump-short"
);
o_key
=
[
NSString
stringWithFormat
:
@"%s"
,
key
];
[
o_mi_bwd
setKeyEquivalent
:
[
o_vlcmain
VLCKeyToString
:
o_key
]];
[
o_mi_bwd
setKeyEquivalent
:
[
o_vlcmain
VLCKeyToString
:
o_key
]];
[
o_mi_bwd
setKeyEquivalentModifierMask
:
[
o_vlcmain
VLCModifiersToCocoa
:
o_key
]];
[
o_mi_bwd
setKeyEquivalentModifierMask
:
[
o_vlcmain
VLCModifiersToCocoa
:
o_key
]];
o_key
=
[
NSString
stringWithFormat
:
@"%s"
,
config_GetPsz
(
p_intf
,
"key-vol-up"
)];
FREENULL
(
key
);
key
=
config_GetPsz
(
p_intf
,
"key-vol-up"
);
o_key
=
[
NSString
stringWithFormat
:
@"%s"
,
key
];
[
o_mi_vol_up
setKeyEquivalent
:
[
o_vlcmain
VLCKeyToString
:
o_key
]];
[
o_mi_vol_up
setKeyEquivalent
:
[
o_vlcmain
VLCKeyToString
:
o_key
]];
[
o_mi_vol_up
setKeyEquivalentModifierMask
:
[
o_vlcmain
VLCModifiersToCocoa
:
o_key
]];
[
o_mi_vol_up
setKeyEquivalentModifierMask
:
[
o_vlcmain
VLCModifiersToCocoa
:
o_key
]];
o_key
=
[
NSString
stringWithFormat
:
@"%s"
,
config_GetPsz
(
p_intf
,
"key-vol-down"
)];
FREENULL
(
key
);
key
=
config_GetPsz
(
p_intf
,
"key-vol-down"
);
o_key
=
[
NSString
stringWithFormat
:
@"%s"
,
key
];
[
o_mi_vol_down
setKeyEquivalent
:
[
o_vlcmain
VLCKeyToString
:
o_key
]];
[
o_mi_vol_down
setKeyEquivalent
:
[
o_vlcmain
VLCKeyToString
:
o_key
]];
[
o_mi_vol_down
setKeyEquivalentModifierMask
:
[
o_vlcmain
VLCModifiersToCocoa
:
o_key
]];
[
o_mi_vol_down
setKeyEquivalentModifierMask
:
[
o_vlcmain
VLCModifiersToCocoa
:
o_key
]];
o_key
=
[
NSString
stringWithFormat
:
@"%s"
,
config_GetPsz
(
p_intf
,
"key-vol-mute"
)];
FREENULL
(
key
);
key
=
config_GetPsz
(
p_intf
,
"key-vol-mute"
);
o_key
=
[
NSString
stringWithFormat
:
@"%s"
,
key
];
[
o_mi_mute
setKeyEquivalent
:
[
o_vlcmain
VLCKeyToString
:
o_key
]];
[
o_mi_mute
setKeyEquivalent
:
[
o_vlcmain
VLCKeyToString
:
o_key
]];
[
o_mi_mute
setKeyEquivalentModifierMask
:
[
o_vlcmain
VLCModifiersToCocoa
:
o_key
]];
[
o_mi_mute
setKeyEquivalentModifierMask
:
[
o_vlcmain
VLCModifiersToCocoa
:
o_key
]];
o_key
=
[
NSString
stringWithFormat
:
@"%s"
,
config_GetPsz
(
p_intf
,
"key-toggle-fullscreen"
)];
FREENULL
(
key
);
key
=
config_GetPsz
(
p_intf
,
"key-toggle-fullscreen"
);
o_key
=
[
NSString
stringWithFormat
:
@"%s"
,
key
];
[
o_mi_fullscreen
setKeyEquivalent
:
[
o_vlcmain
VLCKeyToString
:
o_key
]];
[
o_mi_fullscreen
setKeyEquivalent
:
[
o_vlcmain
VLCKeyToString
:
o_key
]];
[
o_mi_fullscreen
setKeyEquivalentModifierMask
:
[
o_vlcmain
VLCModifiersToCocoa
:
o_key
]];
[
o_mi_fullscreen
setKeyEquivalentModifierMask
:
[
o_vlcmain
VLCModifiersToCocoa
:
o_key
]];
o_key
=
[
NSString
stringWithFormat
:
@"%s"
,
config_GetPsz
(
p_intf
,
"key-snapshot"
)];
FREENULL
(
key
);
key
=
config_GetPsz
(
p_intf
,
"key-snapshot"
);
o_key
=
[
NSString
stringWithFormat
:
@"%s"
,
key
];
[
o_mi_snapshot
setKeyEquivalent
:
[
o_vlcmain
VLCKeyToString
:
o_key
]];
[
o_mi_snapshot
setKeyEquivalent
:
[
o_vlcmain
VLCKeyToString
:
o_key
]];
[
o_mi_snapshot
setKeyEquivalentModifierMask
:
[
o_vlcmain
VLCModifiersToCocoa
:
o_key
]];
[
o_mi_snapshot
setKeyEquivalentModifierMask
:
[
o_vlcmain
VLCModifiersToCocoa
:
o_key
]];
o_key
=
[
NSString
stringWithFormat
:
@"%s"
,
config_GetPsz
(
p_intf
,
"key-random"
)];
FREENULL
(
key
);
key
=
config_GetPsz
(
p_intf
,
"key-random"
);
o_key
=
[
NSString
stringWithFormat
:
@"%s"
,
key
];
[
o_mi_random
setKeyEquivalent
:
[
o_vlcmain
VLCKeyToString
:
o_key
]];
[
o_mi_random
setKeyEquivalent
:
[
o_vlcmain
VLCKeyToString
:
o_key
]];
[
o_mi_random
setKeyEquivalentModifierMask
:
[
o_vlcmain
VLCModifiersToCocoa
:
o_key
]];
[
o_mi_random
setKeyEquivalentModifierMask
:
[
o_vlcmain
VLCModifiersToCocoa
:
o_key
]];
o_key
=
[
NSString
stringWithFormat
:
@"%s"
,
config_GetPsz
(
p_intf
,
"key-zoom-half"
)];
FREENULL
(
key
);
key
=
config_GetPsz
(
p_intf
,
"key-zoom-half"
);
o_key
=
[
NSString
stringWithFormat
:
@"%s"
,
key
];
[
o_mi_half_window
setKeyEquivalent
:
[
o_vlcmain
VLCKeyToString
:
o_key
]];
[
o_mi_half_window
setKeyEquivalent
:
[
o_vlcmain
VLCKeyToString
:
o_key
]];
[
o_mi_half_window
setKeyEquivalentModifierMask
:
[
o_vlcmain
VLCModifiersToCocoa
:
o_key
]];
[
o_mi_half_window
setKeyEquivalentModifierMask
:
[
o_vlcmain
VLCModifiersToCocoa
:
o_key
]];
o_key
=
[
NSString
stringWithFormat
:
@"%s"
,
config_GetPsz
(
p_intf
,
"key-zoom-original"
)];
FREENULL
(
key
);
key
=
config_GetPsz
(
p_intf
,
"key-zoom-original"
);
o_key
=
[
NSString
stringWithFormat
:
@"%s"
,
key
];
[
o_mi_normal_window
setKeyEquivalent
:
[
o_vlcmain
VLCKeyToString
:
o_key
]];
[
o_mi_normal_window
setKeyEquivalent
:
[
o_vlcmain
VLCKeyToString
:
o_key
]];
[
o_mi_normal_window
setKeyEquivalentModifierMask
:
[
o_vlcmain
VLCModifiersToCocoa
:
o_key
]];
[
o_mi_normal_window
setKeyEquivalentModifierMask
:
[
o_vlcmain
VLCModifiersToCocoa
:
o_key
]];
o_key
=
[
NSString
stringWithFormat
:
@"%s"
,
config_GetPsz
(
p_intf
,
"key-zoom-double"
)];
FREENULL
(
key
);
key
=
config_GetPsz
(
p_intf
,
"key-zoom-double"
);
o_key
=
[
NSString
stringWithFormat
:
@"%s"
,
key
];
[
o_mi_double_window
setKeyEquivalent
:
[
o_vlcmain
VLCKeyToString
:
o_key
]];
[
o_mi_double_window
setKeyEquivalent
:
[
o_vlcmain
VLCKeyToString
:
o_key
]];
[
o_mi_double_window
setKeyEquivalentModifierMask
:
[
o_vlcmain
VLCModifiersToCocoa
:
o_key
]];
[
o_mi_double_window
setKeyEquivalentModifierMask
:
[
o_vlcmain
VLCModifiersToCocoa
:
o_key
]];
FREENULL
(
key
);
[
self
setSubmenusEnabled
:
FALSE
];
[
self
setSubmenusEnabled
:
FALSE
];
...
...
modules/gui/macosx/VideoEffects.m
View file @
3d432688
...
@@ -330,6 +330,9 @@ static VLCVideoEffects *_o_sharedInstance = nil;
...
@@ -330,6 +330,9 @@ static VLCVideoEffects *_o_sharedInstance = nil;
[
o_eraselogo_left_lbl
setEnabled
:
[
o_eraselogo_ckb
state
]];
[
o_eraselogo_left_lbl
setEnabled
:
[
o_eraselogo_ckb
state
]];
[
o_eraselogo_top_fld
setEnabled
:
[
o_eraselogo_ckb
state
]];
[
o_eraselogo_top_fld
setEnabled
:
[
o_eraselogo_ckb
state
]];
[
o_eraselogo_top_lbl
setEnabled
:
[
o_eraselogo_ckb
state
]];
[
o_eraselogo_top_lbl
setEnabled
:
[
o_eraselogo_ckb
state
]];
if
(
psz_vfilters
)
free
(
psz_vfilters
);
}
}
-
(
void
)
setVideoFilter
:
(
char
*
)
psz_name
on
:(
BOOL
)
b_on
-
(
void
)
setVideoFilter
:
(
char
*
)
psz_name
on
:(
BOOL
)
b_on
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment