Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
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-2-2
Commits
38f9675c
Commit
38f9675c
authored
May 25, 2006
by
Clément Stenac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a change_internal modifier to options. Please check OS X implementation
parent
3b0885e5
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
14 additions
and
2 deletions
+14
-2
include/configuration.h
include/configuration.h
+4
-0
include/modules_inner.h
include/modules_inner.h
+2
-2
modules/access/cdda.c
modules/access/cdda.c
+2
-0
modules/gui/macosx/prefs.m
modules/gui/macosx/prefs.m
+4
-0
modules/gui/wxwidgets/dialogs/preferences.cpp
modules/gui/wxwidgets/dialogs/preferences.cpp
+2
-0
No files found.
include/configuration.h
View file @
38f9675c
...
@@ -154,6 +154,7 @@ struct module_config_t
...
@@ -154,6 +154,7 @@ struct module_config_t
vlc_mutex_t
*
p_lock
;
/* Lock to use when modifying the config */
vlc_mutex_t
*
p_lock
;
/* Lock to use when modifying the config */
vlc_bool_t
b_dirty
;
/* Dirty flag to indicate a config change */
vlc_bool_t
b_dirty
;
/* Dirty flag to indicate a config change */
vlc_bool_t
b_advanced
;
/* Flag to indicate an advanced option */
vlc_bool_t
b_advanced
;
/* Flag to indicate an advanced option */
vlc_bool_t
b_internal
;
/* Flag to indicate option is not to be shows */
/* Original option values */
/* Original option values */
char
*
psz_value_orig
;
char
*
psz_value_orig
;
...
@@ -395,5 +396,8 @@ int config_AutoSaveConfigFile( vlc_object_t * );
...
@@ -395,5 +396,8 @@ int config_AutoSaveConfigFile( vlc_object_t * );
action_text; \
action_text; \
p_config[i_config].i_action++;
p_config[i_config].i_action++;
#define change_internal() \
p_config[i_config].b_internal = VLC_TRUE;
#define change_autosave() \
#define change_autosave() \
p_config[i_config].b_autosave = VLC_TRUE;
p_config[i_config].b_autosave = VLC_TRUE;
include/modules_inner.h
View file @
38f9675c
...
@@ -102,8 +102,8 @@
...
@@ -102,8 +102,8 @@
static module_config_t config_end = { \
static module_config_t config_end = { \
CONFIG_HINT_END, NULL, NULL, 0, NULL, NULL, NULL, 0, 0., 0, 0, \
CONFIG_HINT_END, NULL, NULL, 0, NULL, NULL, NULL, 0, 0., 0, 0, \
0., 0., NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, 0, NULL, \
0., 0., NULL, NULL, NULL, NULL, NULL, 0, NULL, NULL, 0, NULL, \
VLC_FALSE, NULL, VLC_FALSE, VLC_FALSE,
NULL, 0, 0., NULL, 0, 0.,
\
VLC_FALSE, NULL, VLC_FALSE, VLC_FALSE,
VLC_FALSE, NULL, 0, 0.,
\
VLC_FALSE
\
NULL, 0, 0., VLC_FALSE
\
}; \
}; \
STORE_SYMBOLS; \
STORE_SYMBOLS; \
p_module->b_submodule = VLC_FALSE; \
p_module->b_submodule = VLC_FALSE; \
...
...
modules/access/cdda.c
View file @
38f9675c
...
@@ -66,7 +66,9 @@ vlc_module_begin();
...
@@ -66,7 +66,9 @@ vlc_module_begin();
add_integer
(
"cdda-caching"
,
DEFAULT_PTS_DELAY
/
1000
,
NULL
,
CACHING_TEXT
,
add_integer
(
"cdda-caching"
,
DEFAULT_PTS_DELAY
/
1000
,
NULL
,
CACHING_TEXT
,
CACHING_LONGTEXT
,
VLC_TRUE
);
CACHING_LONGTEXT
,
VLC_TRUE
);
add_bool
(
"cdda-separate-tracks"
,
VLC_TRUE
,
NULL
,
NULL
,
NULL
,
VLC_TRUE
);
add_bool
(
"cdda-separate-tracks"
,
VLC_TRUE
,
NULL
,
NULL
,
NULL
,
VLC_TRUE
);
change_internal
();
add_integer
(
"cdda-track"
,
-
1
,
NULL
,
NULL
,
NULL
,
VLC_TRUE
);
add_integer
(
"cdda-track"
,
-
1
,
NULL
,
NULL
,
NULL
,
VLC_TRUE
);
change_internal
();
add_string
(
"cddb-server"
,
"freedb.freedb.org"
,
NULL
,
add_string
(
"cddb-server"
,
"freedb.freedb.org"
,
NULL
,
N_
(
"CDDB Server"
),
N_
(
"Address of the CDDB server to use."
),
N_
(
"CDDB Server"
),
N_
(
"Address of the CDDB server to use."
),
VLC_TRUE
);
VLC_TRUE
);
...
...
modules/gui/macosx/prefs.m
View file @
38f9675c
...
@@ -639,6 +639,10 @@ static VLCTreeItem *o_root_item = nil;
...
@@ -639,6 +639,10 @@ static VLCTreeItem *o_root_item = nil;
default:
default:
{
{
VLCConfigControl
*
o_control
=
nil
;
VLCConfigControl
*
o_control
=
nil
;
if
(
p_item
->
b_internal
==
VLC_TRUE
)
{
break
;
}
o_control
=
[
VLCConfigControl
newControl
:
p_item
o_control
=
[
VLCConfigControl
newControl
:
p_item
withView:
o_view
];
withView:
o_view
];
if
(
o_control
!=
nil
)
if
(
o_control
!=
nil
)
...
...
modules/gui/wxwidgets/dialogs/preferences.cpp
View file @
38f9675c
...
@@ -999,6 +999,8 @@ PrefsPanel::PrefsPanel( wxWindow* parent, intf_thread_t *_p_intf,
...
@@ -999,6 +999,8 @@ PrefsPanel::PrefsPanel( wxWindow* parent, intf_thread_t *_p_intf,
p_item
->
i_type
==
CONFIG_SUBCATEGORY
)
)
p_item
->
i_type
==
CONFIG_SUBCATEGORY
)
)
break
;
break
;
if
(
p_item
->
b_internal
==
VLC_TRUE
)
continue
;
ConfigControl
*
control
=
ConfigControl
*
control
=
CreateConfigControl
(
VLC_OBJECT
(
p_intf
),
CreateConfigControl
(
VLC_OBJECT
(
p_intf
),
p_item
,
config_window
);
p_item
,
config_window
);
...
...
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