[vlc-commits] Remove osd_Volume()
Rémi Denis-Courmont
git at videolan.org
Sat Jul 21 16:40:58 CEST 2012
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sat Jul 21 17:27:28 2012 +0300| [eae1c91d999d328234d4145fc3ef707acdde2fb3] | committer: Rémi Denis-Courmont
Remove osd_Volume()
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=eae1c91d999d328234d4145fc3ef707acdde2fb3
---
include/vlc_osd.h | 10 ----------
src/libvlccore.sym | 1 -
src/osd/osd.c | 42 ------------------------------------------
3 files changed, 53 deletions(-)
diff --git a/include/vlc_osd.h b/include/vlc_osd.h
index 90baaeb..f55f893 100644
--- a/include/vlc_osd.h
+++ b/include/vlc_osd.h
@@ -364,16 +364,6 @@ VLC_API void osd_MenuDown( vlc_object_t * );
#define osd_MenuDown(object) osd_MenuDown( VLC_OBJECT(object) )
/**
- * Display the audio volume bitmap.
- *
- * Display the correct audio volume bitmap that corresponds to the
- * current Audio Volume setting.
- */
-VLC_API void osd_Volume( vlc_object_t * );
-
-#define osd_Volume(object) osd_Volume( VLC_OBJECT(object) )
-
-/**
* Retrieve a non modifyable pointer to the OSD Menu state
*
*/
diff --git a/src/libvlccore.sym b/src/libvlccore.sym
index 2a40b8b..3462337 100644
--- a/src/libvlccore.sym
+++ b/src/libvlccore.sym
@@ -285,7 +285,6 @@ osd_MenuUp
osd_Message
osd_ShowTextAbsolute
osd_ShowTextRelative
-osd_Volume
path_sanitize
picture_BlendSubpicture
picture_CopyPixels
diff --git a/src/osd/osd.c b/src/osd/osd.c
index ee94b4e..e90b2bf 100644
--- a/src/osd/osd.c
+++ b/src/osd/osd.c
@@ -573,48 +573,6 @@ static int osd_VolumeStep( vlc_object_t *p_this, int i_volume, int i_steps )
return (i_volume/i_volume_step);
}
-#undef osd_Volume
-/**
- * Display current audio volume bitmap
- *
- * The OSD Menu audio volume bar is updated to reflect the new audio volume. Call this function
- * when the audio volume is updated outside the OSD menu command "menu up", "menu down" or "menu select".
- */
-void osd_Volume( vlc_object_t *p_this )
-{
- osd_button_t *p_button = NULL;
- int i_volume = 0;
- int i_steps = 0;
-
- osd_menu_t *p_osd = osd_FindVisible( p_this );
- if( p_osd == NULL )
- return;
-
- if( p_osd->p_state && p_osd->p_state->p_volume )
- {
-
- p_button = p_osd->p_state->p_volume;
- if( p_osd->p_state->p_volume )
- p_osd->p_state->p_visible = p_osd->p_state->p_volume;
- if( p_button && p_button->b_range )
- {
- /* Update the volume state images to match the current volume */
- i_volume = config_GetInt( p_this, "volume" );
- i_steps = osd_VolumeStep( p_this, i_volume, p_button->i_ranges );
- p_button->p_current_state = osd_VolumeStateChange( p_button->p_states, i_steps );
-
- osd_UpdateState( p_osd->p_state,
- p_button->i_x, p_button->i_y,
- p_button->p_current_state->i_width,
- p_button->p_current_state->i_height,
- p_button->p_current_state->p_pic );
- osd_SetMenuUpdate( p_osd, true );
- osd_SetMenuVisible( p_osd, true );
- }
- }
- vlc_mutex_unlock( &osd_mutex );
-}
-
#undef osd_ButtonFind
osd_button_t *osd_ButtonFind( vlc_object_t *p_this, int i_x, int i_y,
int i_window_height, int i_window_width,
More information about the vlc-commits
mailing list