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
19dc078e
Commit
19dc078e
authored
Oct 23, 2010
by
Rémi Duraffort
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use var_Set* when applicable.
parent
3119a2c5
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
16 deletions
+6
-16
src/audio_output/output.c
src/audio_output/output.c
+3
-6
src/osd/osd.c
src/osd/osd.c
+2
-6
src/playlist/item.c
src/playlist/item.c
+1
-4
No files found.
src/audio_output/output.c
View file @
19dc078e
...
...
@@ -112,8 +112,7 @@ int aout_OutputNew( aout_instance_t * p_aout,
{
/* Go directly to the left channel. */
p_aout
->
output
.
output
.
i_original_channels
=
AOUT_CHAN_LEFT
;
val
.
i_int
=
AOUT_VAR_CHAN_LEFT
;
var_Set
(
p_aout
,
"audio-channels"
,
val
);
var_SetInteger
(
p_aout
,
"audio-channels"
,
AOUT_VAR_CHAN_LEFT
);
}
var_AddCallback
(
p_aout
,
"audio-channels"
,
aout_ChannelsRestart
,
NULL
);
...
...
@@ -150,14 +149,12 @@ int aout_OutputNew( aout_instance_t * p_aout,
{
/* Go directly to the left channel. */
p_aout
->
output
.
output
.
i_original_channels
=
AOUT_CHAN_LEFT
;
val
.
i_int
=
AOUT_VAR_CHAN_LEFT
;
var_Set
(
p_aout
,
"audio-channels"
,
val
);
var_SetInteger
(
p_aout
,
"audio-channels"
,
AOUT_VAR_CHAN_LEFT
);
}
var_AddCallback
(
p_aout
,
"audio-channels"
,
aout_ChannelsRestart
,
NULL
);
}
val
.
b_bool
=
true
;
var_Set
(
p_aout
,
"intf-change"
,
val
);
var_SetBool
(
p_aout
,
"intf-change"
,
true
);
aout_FormatPrepare
(
&
p_aout
->
output
.
output
);
...
...
src/osd/osd.c
View file @
19dc078e
...
...
@@ -200,8 +200,7 @@ osd_menu_t *osd_MenuCreate( vlc_object_t *p_this, const char *psz_file )
var_SetBool
(
p_osd
,
"osd-menu-update"
,
false
);
var_SetBool
(
p_osd
,
"osd-menu-visible"
,
false
);
val
.
p_address
=
p_osd
;
var_Set
(
p_this
->
p_libvlc
,
"osd-object"
,
val
);
var_SetAddress
(
p_this
->
p_libvlc
,
"osd-object"
,
p_osd
);
}
else
p_osd
=
val
.
p_address
;
...
...
@@ -227,13 +226,10 @@ void osd_MenuDelete( vlc_object_t *p_this, osd_menu_t *p_osd )
if
(
vlc_internals
(
VLC_OBJECT
(
p_osd
)
)
->
i_refcount
==
1
)
{
vlc_value_t
val
;
var_Destroy
(
p_osd
,
"osd-menu-visible"
);
var_Destroy
(
p_osd
,
"osd-menu-update"
);
osd_ParserUnload
(
p_osd
);
val
.
p_address
=
NULL
;
var_Set
(
p_this
->
p_libvlc
,
"osd-object"
,
val
);
var_SetAddress
(
p_this
->
p_libvlc
,
"osd-object"
,
NULL
);
}
vlc_object_release
(
p_osd
);
...
...
src/playlist/item.c
View file @
19dc078e
...
...
@@ -714,10 +714,7 @@ void playlist_SendAddNotify( playlist_t *p_playlist, int i_item_id,
add
.
i_item
=
i_item_id
;
add
.
i_node
=
i_node_id
;
vlc_value_t
val
;
val
.
p_address
=
&
add
;
var_Set
(
p_playlist
,
"playlist-item-append"
,
val
);
var_SetAddress
(
p_playlist
,
"playlist-item-append"
,
&
add
);
}
/***************************************************************************
...
...
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