Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
532049f6
Commit
532049f6
authored
Aug 23, 2011
by
Felix Paul Kühne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
macosx: remove 'macosx-eq-keep', since it is a useless option, which was never disabled anyway
parent
9abb4e76
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
48 deletions
+22
-48
modules/gui/macosx/AudioEffects.m
modules/gui/macosx/AudioEffects.m
+21
-42
modules/gui/macosx/macosx.m
modules/gui/macosx/macosx.m
+1
-6
No files found.
modules/gui/macosx/AudioEffects.m
View file @
532049f6
...
@@ -164,7 +164,6 @@ static bool GetEqualizerStatus( intf_thread_t *p_custom_intf,
...
@@ -164,7 +164,6 @@ static bool GetEqualizerStatus( intf_thread_t *p_custom_intf,
if
(
p_object
==
NULL
)
if
(
p_object
==
NULL
)
p_object
=
vlc_object_hold
(
pl_Get
(
p_custom_intf
));
p_object
=
vlc_object_hold
(
pl_Get
(
p_custom_intf
));
if
(
(
BOOL
)
config_GetInt
(
p_custom_intf
,
"macosx-eq-keep"
)
==
YES
)
psz_string
=
config_GetPsz
(
p_custom_intf
,
"audio-filter"
);
psz_string
=
config_GetPsz
(
p_custom_intf
,
"audio-filter"
);
if
(
!
psz_string
)
if
(
!
psz_string
)
...
@@ -266,16 +265,8 @@ static bool GetEqualizerStatus( intf_thread_t *p_custom_intf,
...
@@ -266,16 +265,8 @@ static bool GetEqualizerStatus( intf_thread_t *p_custom_intf,
if
(
psz_bands
==
NULL
)
if
(
psz_bands
==
NULL
)
psz_bands
=
strdup
(
"0 0 0 0 0 0 0 0 0 0"
);
psz_bands
=
strdup
(
"0 0 0 0 0 0 0 0 0 0"
);
if
(
(
BOOL
)
config_GetInt
(
p_intf
,
"macosx-eq-keep"
)
==
YES
)
{
b_2p
=
(
BOOL
)
config_GetInt
(
p_object
,
"equalizer-2pass"
);
b_2p
=
(
BOOL
)
config_GetInt
(
p_object
,
"equalizer-2pass"
);
f_preamp
=
config_GetFloat
(
p_object
,
"equalizer-preamp"
);
f_preamp
=
config_GetFloat
(
p_object
,
"equalizer-preamp"
);
}
else
{
b_2p
=
var_GetBool
(
p_object
,
"equalizer-2pass"
);
f_preamp
=
var_GetFloat
(
p_object
,
"equalizer-preamp"
);
}
vlc_object_release
(
p_object
);
vlc_object_release
(
p_object
);
...
@@ -367,11 +358,8 @@ static bool GetEqualizerStatus( intf_thread_t *p_custom_intf,
...
@@ -367,11 +358,8 @@ static bool GetEqualizerStatus( intf_thread_t *p_custom_intf,
psz_values
=
[
preset
UTF8String
];
psz_values
=
[
preset
UTF8String
];
var_SetString
(
p_object
,
"equalizer-bands"
,
psz_values
);
var_SetString
(
p_object
,
"equalizer-bands"
,
psz_values
);
if
(
(
BOOL
)
config_GetInt
(
p_intf
,
"macosx-eq-keep"
)
==
YES
)
{
/* save changed to config */
/* save changed to config */
config_PutPsz
(
p_intf
,
"equalizer-bands"
,
psz_values
);
config_PutPsz
(
p_intf
,
"equalizer-bands"
,
psz_values
);
}
vlc_object_release
(
p_object
);
vlc_object_release
(
p_object
);
}
}
...
@@ -397,13 +385,10 @@ static bool GetEqualizerStatus( intf_thread_t *p_custom_intf,
...
@@ -397,13 +385,10 @@ static bool GetEqualizerStatus( intf_thread_t *p_custom_intf,
[
self
setBandSlidersValues
:(
float
*
)
eqz_preset_10b
[[
sender
indexOfSelectedItem
]].
f_amp
];
[
self
setBandSlidersValues
:(
float
*
)
eqz_preset_10b
[[
sender
indexOfSelectedItem
]].
f_amp
];
if
(
(
BOOL
)
config_GetInt
(
p_intf
,
"macosx-eq-keep"
)
==
YES
)
{
/* save changed to config */
/* save changed to config */
config_PutPsz
(
p_intf
,
"equalizer-bands"
,
psz_values
);
config_PutPsz
(
p_intf
,
"equalizer-bands"
,
psz_values
);
config_PutFloat
(
p_intf
,
"equalizer-preamp"
,
eqz_preset_10b
[[
sender
indexOfSelectedItem
]].
f_preamp
);
config_PutFloat
(
p_intf
,
"equalizer-preamp"
,
eqz_preset_10b
[[
sender
indexOfSelectedItem
]].
f_preamp
);
config_PutPsz
(
p_intf
,
"equalizer-preset"
,
preset_list
[[
sender
indexOfSelectedItem
]]
);
config_PutPsz
(
p_intf
,
"equalizer-preset"
,
preset_list
[[
sender
indexOfSelectedItem
]]
);
}
vlc_object_release
(
p_object
);
vlc_object_release
(
p_object
);
}
}
...
@@ -417,11 +402,8 @@ static bool GetEqualizerStatus( intf_thread_t *p_custom_intf,
...
@@ -417,11 +402,8 @@ static bool GetEqualizerStatus( intf_thread_t *p_custom_intf,
var_SetFloat
(
p_object
,
"equalizer-preamp"
,
f_preamp
);
var_SetFloat
(
p_object
,
"equalizer-preamp"
,
f_preamp
);
if
(
(
BOOL
)
config_GetInt
(
p_intf
,
"macosx-eq-keep"
)
==
YES
)
{
/* save changed to config */
/* save changed to config */
config_PutFloat
(
p_intf
,
"equalizer-preamp"
,
f_preamp
);
config_PutFloat
(
p_intf
,
"equalizer-preamp"
,
f_preamp
);
}
vlc_object_release
(
p_object
);
vlc_object_release
(
p_object
);
}
}
...
@@ -435,11 +417,8 @@ static bool GetEqualizerStatus( intf_thread_t *p_custom_intf,
...
@@ -435,11 +417,8 @@ static bool GetEqualizerStatus( intf_thread_t *p_custom_intf,
var_SetBool
(
p_object
,
"equalizer-2pass"
,
b_2p
);
var_SetBool
(
p_object
,
"equalizer-2pass"
,
b_2p
);
if
(
(
BOOL
)
config_GetInt
(
p_intf
,
"macosx-eq-keep"
)
==
YES
)
{
/* save changed to config */
/* save changed to config */
config_PutInt
(
p_intf
,
"equalizer-2pass"
,
(
int
)
b_2p
);
config_PutInt
(
p_intf
,
"equalizer-2pass"
,
(
int
)
b_2p
);
}
vlc_object_release
(
p_object
);
vlc_object_release
(
p_object
);
}
}
...
...
modules/gui/macosx/macosx.m
View file @
532049f6
...
@@ -77,10 +77,6 @@ void WindowClose ( vout_window_t * );
...
@@ -77,10 +77,6 @@ void WindowClose ( vout_window_t * );
#define RECENT_ITEMS_LONGTEXT N_("By default, VLC keeps a list of the last 10 items. " \
#define RECENT_ITEMS_LONGTEXT N_("By default, VLC keeps a list of the last 10 items. " \
"This feature can be disabled here.")
"This feature can be disabled here.")
#define EQ_KEEP_TEXT N_("Keep current Equalizer settings")
#define EQ_KEEP_LONGTEXT N_("By default, VLC keeps the last equalizer settings before " \
"termination. This feature can be disabled here.")
#define USE_APPLE_REMOTE_TEXT N_("Control playback with the Apple Remote")
#define USE_APPLE_REMOTE_TEXT N_("Control playback with the Apple Remote")
#define USE_APPLE_REMOTE_LONGTEXT N_("By default, VLC can be remotely controlled with the Apple Remote.")
#define USE_APPLE_REMOTE_LONGTEXT N_("By default, VLC can be remotely controlled with the Apple Remote.")
...
@@ -105,8 +101,6 @@ vlc_module_begin ()
...
@@ -105,8 +101,6 @@ vlc_module_begin ()
false )
false )
add_bool( "macosx-recentitems", true, RECENT_ITEMS_TEXT, RECENT_ITEMS_LONGTEXT,
add_bool( "macosx-recentitems", true, RECENT_ITEMS_TEXT, RECENT_ITEMS_LONGTEXT,
false )
false )
add_bool( "macosx-eq-keep", true, EQ_KEEP_TEXT, EQ_KEEP_LONGTEXT,
false )
add_bool( "macosx-fspanel", true, FSPANEL_TEXT, FSPANEL_LONGTEXT,
add_bool( "macosx-fspanel", true, FSPANEL_TEXT, FSPANEL_LONGTEXT,
false )
false )
add_bool( "macosx-appleremote", true, USE_APPLE_REMOTE_TEXT, USE_APPLE_REMOTE_LONGTEXT,
add_bool( "macosx-appleremote", true, USE_APPLE_REMOTE_TEXT, USE_APPLE_REMOTE_LONGTEXT,
...
@@ -118,6 +112,7 @@ vlc_module_begin ()
...
@@ -118,6 +112,7 @@ vlc_module_begin ()
add_bool( "macosx-nativefullscreenmode", true, NATIVE_FULLSCREEN_MODE_ON_LION_TEXT, NATIVE_FULLSCREEN_MODE_ON_LION_LONGTEXT, false )
add_bool( "macosx-nativefullscreenmode", true, NATIVE_FULLSCREEN_MODE_ON_LION_TEXT, NATIVE_FULLSCREEN_MODE_ON_LION_LONGTEXT, false )
add_obsolete_bool( "macosx-stretch" ) /* since 1.2.0 */
add_obsolete_bool( "macosx-stretch" ) /* since 1.2.0 */
add_obsolete_bool( "macosx-background" ) /* since 1.2.0 */
add_obsolete_bool( "macosx-background" ) /* since 1.2.0 */
add_obsolete_bool( "macosx-eq-keep" ) /* since 1.2.0 */
add_submodule ()
add_submodule ()
set_description( "Mac OS X Video Output Provider" )
set_description( "Mac OS X Video Output Provider" )
...
...
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