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
f14ca312
Commit
f14ca312
authored
Apr 07, 2011
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove "saved-volume" and "volume-change". Use "volume".
parent
70042746
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
14 additions
and
21 deletions
+14
-21
modules/control/rc.c
modules/control/rc.c
+3
-4
modules/gui/qt4/input_manager.cpp
modules/gui/qt4/input_manager.cpp
+2
-2
modules/gui/skins2/src/vlcproc.cpp
modules/gui/skins2/src/vlcproc.cpp
+3
-3
src/audio_output/intf.c
src/audio_output/intf.c
+4
-8
src/control/media_player.c
src/control/media_player.c
+1
-2
src/playlist/engine.c
src/playlist/engine.c
+1
-2
No files found.
modules/control/rc.c
View file @
f14ca312
...
@@ -462,7 +462,7 @@ static void Run( intf_thread_t *p_intf )
...
@@ -462,7 +462,7 @@ static void Run( intf_thread_t *p_intf )
/* status callbacks */
/* status callbacks */
/* Listen to audio volume updates */
/* Listen to audio volume updates */
var_AddCallback
(
p_playlist
,
"volume
-change
"
,
VolumeChanged
,
p_intf
);
var_AddCallback
(
p_playlist
,
"volume"
,
VolumeChanged
,
p_intf
);
#ifdef WIN32
#ifdef WIN32
/* Get the file descriptor of the console input */
/* Get the file descriptor of the console input */
...
@@ -792,7 +792,7 @@ static void Run( intf_thread_t *p_intf )
...
@@ -792,7 +792,7 @@ static void Run( intf_thread_t *p_intf )
vlc_object_release
(
p_input
);
vlc_object_release
(
p_input
);
}
}
var_DelCallback
(
p_playlist
,
"volume
-change
"
,
VolumeChanged
,
p_intf
);
var_DelCallback
(
p_playlist
,
"volume"
,
VolumeChanged
,
p_intf
);
vlc_restorecancel
(
canc
);
vlc_restorecancel
(
canc
);
}
}
...
@@ -903,8 +903,7 @@ static int VolumeChanged( vlc_object_t *p_this, char const *psz_cmd,
...
@@ -903,8 +903,7 @@ static int VolumeChanged( vlc_object_t *p_this, char const *psz_cmd,
intf_thread_t
*
p_intf
=
(
intf_thread_t
*
)
p_data
;
intf_thread_t
*
p_intf
=
(
intf_thread_t
*
)
p_data
;
vlc_mutex_lock
(
&
p_intf
->
p_sys
->
status_lock
);
vlc_mutex_lock
(
&
p_intf
->
p_sys
->
status_lock
);
msg_rc
(
STATUS_CHANGE
"( audio volume: %d )"
,
msg_rc
(
STATUS_CHANGE
"( audio volume: %d )"
,
newval
.
i_int
);
(
int
)
config_GetInt
(
p_this
,
"volume"
)
);
vlc_mutex_unlock
(
&
p_intf
->
p_sys
->
status_lock
);
vlc_mutex_unlock
(
&
p_intf
->
p_sys
->
status_lock
);
return
VLC_SUCCESS
;
return
VLC_SUCCESS
;
}
}
...
...
modules/gui/qt4/input_manager.cpp
View file @
f14ca312
...
@@ -956,7 +956,7 @@ MainInputManager::MainInputManager( intf_thread_t *_p_intf )
...
@@ -956,7 +956,7 @@ MainInputManager::MainInputManager( intf_thread_t *_p_intf )
var_AddCallback
(
THEPL
,
"repeat"
,
RepeatChanged
,
this
);
var_AddCallback
(
THEPL
,
"repeat"
,
RepeatChanged
,
this
);
var_AddCallback
(
THEPL
,
"loop"
,
LoopChanged
,
this
);
var_AddCallback
(
THEPL
,
"loop"
,
LoopChanged
,
this
);
var_AddCallback
(
THEPL
,
"volume
-change
"
,
VolumeChanged
,
this
);
var_AddCallback
(
THEPL
,
"volume"
,
VolumeChanged
,
this
);
var_AddCallback
(
THEPL
,
"mute"
,
SoundMuteChanged
,
this
);
var_AddCallback
(
THEPL
,
"mute"
,
SoundMuteChanged
,
this
);
/* Warn our embedded IM about input changes */
/* Warn our embedded IM about input changes */
...
@@ -987,7 +987,7 @@ MainInputManager::~MainInputManager()
...
@@ -987,7 +987,7 @@ MainInputManager::~MainInputManager()
vlc_object_release
(
p_input
);
vlc_object_release
(
p_input
);
}
}
var_DelCallback
(
THEPL
,
"volume
-change
"
,
VolumeChanged
,
this
);
var_DelCallback
(
THEPL
,
"volume"
,
VolumeChanged
,
this
);
var_DelCallback
(
THEPL
,
"mute"
,
SoundMuteChanged
,
this
);
var_DelCallback
(
THEPL
,
"mute"
,
SoundMuteChanged
,
this
);
var_DelCallback
(
THEPL
,
"activity"
,
PLItemChanged
,
this
);
var_DelCallback
(
THEPL
,
"activity"
,
PLItemChanged
,
this
);
...
...
modules/gui/skins2/src/vlcproc.cpp
View file @
f14ca312
...
@@ -151,7 +151,7 @@ VlcProc::VlcProc( intf_thread_t *pIntf ): SkinObject( pIntf ),
...
@@ -151,7 +151,7 @@ VlcProc::VlcProc( intf_thread_t *pIntf ): SkinObject( pIntf ),
#define ADD_CALLBACK( p_object, var ) \
#define ADD_CALLBACK( p_object, var ) \
var_AddCallback( p_object, var, onGenericCallback, this );
var_AddCallback( p_object, var, onGenericCallback, this );
ADD_CALLBACK
(
pIntf
->
p_sys
->
p_playlist
,
"volume
-change
"
)
ADD_CALLBACK
(
pIntf
->
p_sys
->
p_playlist
,
"volume"
)
ADD_CALLBACK
(
pIntf
->
p_libvlc
,
"intf-show"
)
ADD_CALLBACK
(
pIntf
->
p_libvlc
,
"intf-show"
)
ADD_CALLBACK
(
pIntf
->
p_sys
->
p_playlist
,
"item-current"
)
ADD_CALLBACK
(
pIntf
->
p_sys
->
p_playlist
,
"item-current"
)
...
@@ -203,7 +203,7 @@ VlcProc::~VlcProc()
...
@@ -203,7 +203,7 @@ VlcProc::~VlcProc()
interaction_Unregister
(
getIntf
()
);
interaction_Unregister
(
getIntf
()
);
var_DelCallback
(
getIntf
()
->
p_sys
->
p_playlist
,
"volume
-change
"
,
var_DelCallback
(
getIntf
()
->
p_sys
->
p_playlist
,
"volume"
,
onGenericCallback
,
this
);
onGenericCallback
,
this
);
var_DelCallback
(
getIntf
()
->
p_libvlc
,
"intf-show"
,
var_DelCallback
(
getIntf
()
->
p_libvlc
,
"intf-show"
,
onGenericCallback
,
this
);
onGenericCallback
,
this
);
...
@@ -385,7 +385,7 @@ int VlcProc::onGenericCallback( vlc_object_t *pObj, const char *pVariable,
...
@@ -385,7 +385,7 @@ int VlcProc::onGenericCallback( vlc_object_t *pObj, const char *pVariable,
}
}
ADD_CALLBACK_ENTRY
(
"item-current"
,
on_item_current_changed
,
false
)
ADD_CALLBACK_ENTRY
(
"item-current"
,
on_item_current_changed
,
false
)
ADD_CALLBACK_ENTRY
(
"volume
-change
"
,
on_volume_changed
,
true
)
ADD_CALLBACK_ENTRY
(
"volume"
,
on_volume_changed
,
true
)
ADD_CALLBACK_ENTRY
(
"bit-rate"
,
on_bit_rate_changed
,
false
)
ADD_CALLBACK_ENTRY
(
"bit-rate"
,
on_bit_rate_changed
,
false
)
ADD_CALLBACK_ENTRY
(
"sample-rate"
,
on_sample_rate_changed
,
false
)
ADD_CALLBACK_ENTRY
(
"sample-rate"
,
on_sample_rate_changed
,
false
)
...
...
src/audio_output/intf.c
View file @
f14ca312
...
@@ -69,7 +69,7 @@ static void prepareVolume (vlc_object_t *obj, aout_instance_t **aoutp,
...
@@ -69,7 +69,7 @@ static void prepareVolume (vlc_object_t *obj, aout_instance_t **aoutp,
if
(
aout
!=
NULL
)
if
(
aout
!=
NULL
)
aout_lock_volume
(
aout
);
aout_lock_volume
(
aout
);
if
(
volp
!=
NULL
)
if
(
volp
!=
NULL
)
*
volp
=
config_GetInt
(
obj
,
"volume"
);
*
volp
=
var_GetInteger
(
obj
,
"volume"
);
if
(
mutep
!=
NULL
)
if
(
mutep
!=
NULL
)
*
mutep
=
var_GetBool
(
obj
,
"mute"
);
*
mutep
=
var_GetBool
(
obj
,
"mute"
);
}
}
...
@@ -80,7 +80,7 @@ static int commitVolume (vlc_object_t *obj, aout_instance_t *aout,
...
@@ -80,7 +80,7 @@ static int commitVolume (vlc_object_t *obj, aout_instance_t *aout,
{
{
int
ret
=
0
;
int
ret
=
0
;
config_PutInt
(
obj
,
"volume"
,
volume
);
var_SetInteger
(
obj
,
"volume"
,
volume
);
if
(
mute
)
if
(
mute
)
volume
=
AOUT_VOLUME_MIN
;
volume
=
AOUT_VOLUME_MIN
;
var_SetBool
(
obj
,
"mute"
,
mute
);
var_SetBool
(
obj
,
"mute"
,
mute
);
...
@@ -99,10 +99,6 @@ static int commitVolume (vlc_object_t *obj, aout_instance_t *aout,
...
@@ -99,10 +99,6 @@ static int commitVolume (vlc_object_t *obj, aout_instance_t *aout,
aout_unlock_volume
(
aout
);
aout_unlock_volume
(
aout
);
vlc_object_release
(
aout
);
vlc_object_release
(
aout
);
}
}
/* trigger callbacks */
var_TriggerCallback
(
obj
,
"volume-change"
);
return
ret
;
return
ret
;
}
}
...
@@ -133,7 +129,7 @@ audio_volume_t aout_VolumeGet (vlc_object_t *obj)
...
@@ -133,7 +129,7 @@ audio_volume_t aout_VolumeGet (vlc_object_t *obj)
cancelVolume (obj, aout);
cancelVolume (obj, aout);
return 0;
return 0;
#else
#else
return
config_GetInt
(
obj
,
"volume"
);
return
var_GetInteger
(
obj
,
"volume"
);
#endif
#endif
}
}
...
@@ -245,7 +241,7 @@ void aout_VolumeSoftInit( aout_instance_t * p_aout )
...
@@ -245,7 +241,7 @@ void aout_VolumeSoftInit( aout_instance_t * p_aout )
p_aout
->
output
.
pf_volume_set
=
aout_VolumeSoftSet
;
p_aout
->
output
.
pf_volume_set
=
aout_VolumeSoftSet
;
i_volume
=
config_GetInt
(
p_aout
,
"volume"
);
i_volume
=
var_InheritInteger
(
p_aout
,
"volume"
);
if
(
i_volume
<
AOUT_VOLUME_MIN
)
if
(
i_volume
<
AOUT_VOLUME_MIN
)
{
{
i_volume
=
AOUT_VOLUME_DEFAULT
;
i_volume
=
AOUT_VOLUME_DEFAULT
;
...
...
src/control/media_player.c
View file @
f14ca312
...
@@ -455,8 +455,7 @@ libvlc_media_player_new( libvlc_instance_t *instance )
...
@@ -455,8 +455,7 @@ libvlc_media_player_new( libvlc_instance_t *instance )
/* Audio */
/* Audio */
var_Create
(
mp
,
"aout"
,
VLC_VAR_STRING
|
VLC_VAR_DOINHERIT
);
var_Create
(
mp
,
"aout"
,
VLC_VAR_STRING
|
VLC_VAR_DOINHERIT
);
var_Create
(
mp
,
"mute"
,
VLC_VAR_BOOL
);
var_Create
(
mp
,
"mute"
,
VLC_VAR_BOOL
);
var_Create
(
mp
,
"saved-volume"
,
VLC_VAR_INTEGER
);
var_Create
(
mp
,
"volume"
,
VLC_VAR_INTEGER
|
VLC_VAR_DOINHERIT
);
var_Create
(
mp
,
"volume-change"
,
VLC_VAR_VOID
);
var_Create
(
mp
,
"find-input-callback"
,
VLC_VAR_ADDRESS
);
var_Create
(
mp
,
"find-input-callback"
,
VLC_VAR_ADDRESS
);
var_SetAddress
(
mp
,
"find-input-callback"
,
find_input
);
var_SetAddress
(
mp
,
"find-input-callback"
,
find_input
);
...
...
src/playlist/engine.c
View file @
f14ca312
...
@@ -433,8 +433,7 @@ static void VariablesInit( playlist_t *p_playlist )
...
@@ -433,8 +433,7 @@ static void VariablesInit( playlist_t *p_playlist )
/* Audio output parameters */
/* Audio output parameters */
var_Create
(
p_playlist
,
"mute"
,
VLC_VAR_BOOL
);
var_Create
(
p_playlist
,
"mute"
,
VLC_VAR_BOOL
);
var_Create
(
p_playlist
,
"saved-volume"
,
VLC_VAR_INTEGER
);
var_Create
(
p_playlist
,
"volume"
,
VLC_VAR_INTEGER
|
VLC_VAR_DOINHERIT
);
var_Create
(
p_playlist
,
"volume-change"
,
VLC_VAR_VOID
);
/* FIXME: horrible hack for audio output interface code */
/* FIXME: horrible hack for audio output interface code */
var_Create
(
p_playlist
,
"find-input-callback"
,
VLC_VAR_ADDRESS
);
var_Create
(
p_playlist
,
"find-input-callback"
,
VLC_VAR_ADDRESS
);
var_SetAddress
(
p_playlist
,
"find-input-callback"
,
playlist_FindInput
);
var_SetAddress
(
p_playlist
,
"find-input-callback"
,
playlist_FindInput
);
...
...
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