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
32486e65
Commit
32486e65
authored
Oct 23, 2014
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
variables: remove VLC_VAR_GETLIST (same as VLC_VAR_GETCHOICES)
parent
c320bf79
Changes
13
Show whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
18 additions
and
19 deletions
+18
-19
include/vlc_variables.h
include/vlc_variables.h
+1
-1
lib/media_player.c
lib/media_player.c
+1
-1
lib/video.c
lib/video.c
+1
-1
modules/control/hotkeys.c
modules/control/hotkeys.c
+3
-3
modules/control/rc.c
modules/control/rc.c
+3
-3
modules/gui/macosx/MainMenu.m
modules/gui/macosx/MainMenu.m
+1
-1
modules/gui/ncurses.c
modules/gui/ncurses.c
+1
-1
modules/gui/qt4/components/controller_widget.cpp
modules/gui/qt4/components/controller_widget.cpp
+1
-1
modules/gui/qt4/input_manager.cpp
modules/gui/qt4/input_manager.cpp
+2
-2
modules/gui/qt4/menus.cpp
modules/gui/qt4/menus.cpp
+2
-2
modules/lua/libs/variables.c
modules/lua/libs/variables.c
+1
-1
src/input/input.c
src/input/input.c
+1
-1
src/misc/variables.c
src/misc/variables.c
+0
-1
No files found.
include/vlc_variables.h
View file @
32486e65
...
...
@@ -121,7 +121,7 @@
#define VLC_VAR_CLEARCHOICES 0x0022
#define VLC_VAR_SETDEFAULT 0x0023
#define VLC_VAR_GETCHOICES 0x0024
#define VLC_VAR_GETLIST 0x0025
#define VLC_VAR_CHOICESCOUNT 0x0026
/**@}*/
...
...
lib/media_player.c
View file @
32486e65
...
...
@@ -1466,7 +1466,7 @@ libvlc_track_description_t *
return
NULL
;
vlc_value_t
val_list
,
text_list
;
int
i_ret
=
var_Change
(
p_input
,
psz_variable
,
VLC_VAR_GET
LIST
,
&
val_list
,
&
text_list
);
int
i_ret
=
var_Change
(
p_input
,
psz_variable
,
VLC_VAR_GET
CHOICES
,
&
val_list
,
&
text_list
);
if
(
i_ret
!=
VLC_SUCCESS
)
return
NULL
;
...
...
lib/video.c
View file @
32486e65
...
...
@@ -495,7 +495,7 @@ void libvlc_toggle_teletext( libvlc_media_player_t *p_mi )
else
{
vlc_value_t
list
;
if
(
!
var_Change
(
p_input_thread
,
"teletext-es"
,
VLC_VAR_GET
LIST
,
&
list
,
NULL
)
)
if
(
!
var_Change
(
p_input_thread
,
"teletext-es"
,
VLC_VAR_GET
CHOICES
,
&
list
,
NULL
)
)
{
if
(
list
.
p_list
->
i_count
>
0
)
var_SetInteger
(
p_input_thread
,
"spu-es"
,
list
.
p_list
->
p_values
[
0
].
i_int
);
...
...
modules/control/hotkeys.c
View file @
32486e65
...
...
@@ -805,7 +805,7 @@ static int PutAction( intf_thread_t *p_intf, int i_action )
{
vlc_value_t
val
=
{
0
},
val_list
,
text_list
;
var_Get
(
p_vout
,
"aspect-ratio"
,
&
val
);
if
(
var_Change
(
p_vout
,
"aspect-ratio"
,
VLC_VAR_GET
LIST
,
if
(
var_Change
(
p_vout
,
"aspect-ratio"
,
VLC_VAR_GET
CHOICES
,
&
val_list
,
&
text_list
)
>=
0
)
{
int
i
;
...
...
@@ -835,7 +835,7 @@ static int PutAction( intf_thread_t *p_intf, int i_action )
{
vlc_value_t
val
=
{
0
},
val_list
,
text_list
;
var_Get
(
p_vout
,
"crop"
,
&
val
);
if
(
var_Change
(
p_vout
,
"crop"
,
VLC_VAR_GET
LIST
,
if
(
var_Change
(
p_vout
,
"crop"
,
VLC_VAR_GET
CHOICES
,
&
val_list
,
&
text_list
)
>=
0
)
{
int
i
;
...
...
@@ -957,7 +957,7 @@ static int PutAction( intf_thread_t *p_intf, int i_action )
{
vlc_value_t
val
=
{
0
},
val_list
,
text_list
;
var_Get
(
p_vout
,
"zoom"
,
&
val
);
if
(
var_Change
(
p_vout
,
"zoom"
,
VLC_VAR_GET
LIST
,
if
(
var_Change
(
p_vout
,
"zoom"
,
VLC_VAR_GET
CHOICES
,
&
val_list
,
&
text_list
)
>=
0
)
{
int
i
;
...
...
modules/control/rc.c
View file @
32486e65
...
...
@@ -1127,7 +1127,7 @@ static int Input( vlc_object_t *p_this, char const *psz_cmd,
i_value
=
val
.
i_int
;
if
(
var_Change
(
p_input
,
psz_variable
,
VLC_VAR_GET
LIST
,
&
val
,
&
text
)
<
0
)
VLC_VAR_GET
CHOICES
,
&
val
,
&
text
)
<
0
)
goto
out
;
msg_rc
(
"+----[ %s ]"
,
val_name
.
psz_string
);
...
...
@@ -1584,7 +1584,7 @@ static int VideoConfig( vlc_object_t *p_this, char const *psz_cmd,
}
if
(
var_Change
(
p_vout
,
psz_variable
,
VLC_VAR_GET
LIST
,
&
val
,
&
text
)
<
0
)
VLC_VAR_GET
CHOICES
,
&
val
,
&
text
)
<
0
)
{
vlc_object_release
(
p_vout
);
free
(
psz_value
);
...
...
@@ -1689,7 +1689,7 @@ static int AudioChannel( vlc_object_t *obj, char const *cmd,
/* Retrieve all registered ***. */
vlc_value_t
val
,
text
;
if
(
var_Change
(
p_aout
,
"stereo-mode"
,
VLC_VAR_GET
LIST
,
&
val
,
&
text
)
<
0
)
VLC_VAR_GET
CHOICES
,
&
val
,
&
text
)
<
0
)
{
ret
=
VLC_ENOVAR
;
goto
out
;
...
...
modules/gui/macosx/MainMenu.m
View file @
32486e65
...
...
@@ -1430,7 +1430,7 @@ static VLCMainMenu *_o_sharedInstance = nil;
return
;
}
if
(
var_Change
(
p_object
,
psz_variable
,
VLC_VAR_GET
LIST
,
if
(
var_Change
(
p_object
,
psz_variable
,
VLC_VAR_GET
CHOICES
,
&
val_list
,
&
text_list
)
<
0
)
{
if
((
i_type
&
VLC_VAR_TYPE
)
==
VLC_VAR_STRING
)
free
(
val
.
psz_string
);
return
;
...
...
modules/gui/ncurses.c
View file @
32486e65
...
...
@@ -1567,7 +1567,7 @@ static void CycleESTrack(intf_sys_t *sys, const char *var)
return
;
vlc_value_t
val
;
if
(
var_Change
(
input
,
var
,
VLC_VAR_GET
LIST
,
&
val
,
NULL
)
<
0
)
if
(
var_Change
(
input
,
var
,
VLC_VAR_GET
CHOICES
,
&
val
,
NULL
)
<
0
)
return
;
vlc_list_t
*
list
=
val
.
p_list
;
...
...
modules/gui/qt4/components/controller_widget.cpp
View file @
32486e65
...
...
@@ -270,7 +270,7 @@ void AspectRatioComboBox::updateRatios()
return
;
}
var_Change
(
p_vout
,
"aspect-ratio"
,
VLC_VAR_GET
LIST
,
&
val_list
,
&
text_list
);
var_Change
(
p_vout
,
"aspect-ratio"
,
VLC_VAR_GET
CHOICES
,
&
val_list
,
&
text_list
);
for
(
int
i
=
0
;
i
<
val_list
.
p_list
->
i_count
;
i
++
)
addItem
(
qfu
(
text_list
.
p_list
->
p_values
[
i
].
psz_string
),
QString
(
val_list
.
p_list
->
p_values
[
i
].
psz_string
)
);
...
...
modules/gui/qt4/input_manager.cpp
View file @
32486e65
...
...
@@ -828,7 +828,7 @@ void InputManager::sectionMenu()
{
vlc_value_t
val
,
text
;
if
(
var_Change
(
p_input
,
"title 0"
,
VLC_VAR_GET
LIST
,
&
val
,
&
text
)
<
0
)
if
(
var_Change
(
p_input
,
"title 0"
,
VLC_VAR_GET
CHOICES
,
&
val
,
&
text
)
<
0
)
return
;
/* XXX is it "Root" or "Title" we want here ?" (set 0 by default) */
...
...
@@ -877,7 +877,7 @@ void InputManager::activateTeletext( bool b_enable )
{
vlc_value_t
list
;
vlc_value_t
text
;
if
(
hasInput
()
&&
!
var_Change
(
p_input
,
"teletext-es"
,
VLC_VAR_GET
LIST
,
&
list
,
&
text
)
)
if
(
hasInput
()
&&
!
var_Change
(
p_input
,
"teletext-es"
,
VLC_VAR_GET
CHOICES
,
&
list
,
&
text
)
)
{
if
(
list
.
p_list
->
i_count
>
0
)
{
...
...
modules/gui/qt4/menus.cpp
View file @
32486e65
...
...
@@ -1243,7 +1243,7 @@ static bool IsMenuEmpty( const char *psz_var,
}
/* Check children variables in case of VLC_VAR_VARIABLE */
if
(
var_Change
(
p_object
,
psz_var
,
VLC_VAR_GET
LIST
,
&
val_list
,
NULL
)
<
0
)
if
(
var_Change
(
p_object
,
psz_var
,
VLC_VAR_GET
CHOICES
,
&
val_list
,
NULL
)
<
0
)
{
return
true
;
}
...
...
@@ -1428,7 +1428,7 @@ int VLCMenuBar::CreateChoicesMenu( QMenu *submenu, const char *psz_var,
return
VLC_EGENERIC
;
}
if
(
var_Change
(
p_object
,
psz_var
,
VLC_VAR_GET
LIST
,
if
(
var_Change
(
p_object
,
psz_var
,
VLC_VAR_GET
CHOICES
,
&
val_list
,
&
text_list
)
<
0
)
{
return
VLC_EGENERIC
;
...
...
modules/lua/libs/variables.c
View file @
32486e65
...
...
@@ -218,7 +218,7 @@ static int vlclua_var_get_list( lua_State *L )
vlc_object_t
**
pp_obj
=
luaL_checkudata
(
L
,
1
,
"vlc_object"
);
const
char
*
psz_var
=
luaL_checkstring
(
L
,
2
);
int
i_ret
=
var_Change
(
*
pp_obj
,
psz_var
,
VLC_VAR_GET
LIST
,
&
val
,
&
text
);
int
i_ret
=
var_Change
(
*
pp_obj
,
psz_var
,
VLC_VAR_GET
CHOICES
,
&
val
,
&
text
);
if
(
i_ret
<
0
)
return
vlclua_push_ret
(
L
,
i_ret
);
...
...
src/input/input.c
View file @
32486e65
...
...
@@ -3014,7 +3014,7 @@ static void input_SubtitleAdd( input_thread_t *p_input,
/* Select the ES */
vlc_value_t
list
;
if
(
var_Change
(
p_input
,
"spu-es"
,
VLC_VAR_GET
LIST
,
&
list
,
NULL
)
)
if
(
var_Change
(
p_input
,
"spu-es"
,
VLC_VAR_GET
CHOICES
,
&
list
,
NULL
)
)
return
;
if
(
count
.
i_int
==
0
)
count
.
i_int
++
;
...
...
src/misc/variables.c
View file @
32486e65
...
...
@@ -531,7 +531,6 @@ int var_Change( vlc_object_t *p_this, const char *psz_name,
p_var
->
ops
->
pf_free
(
&
oldval
);
break
;
case
VLC_VAR_GETCHOICES
:
case
VLC_VAR_GETLIST
:
p_val
->
p_list
=
xmalloc
(
sizeof
(
vlc_list_t
)
);
p_val
->
p_list
->
p_values
=
xmalloc
(
p_var
->
choices
.
i_count
*
sizeof
(
vlc_value_t
)
);
...
...
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