[vlc-devel] Re: aout_VolumeDown (first referenced in modules/video_output/libvout_sdl.a
Christophe Massiot
massiot at via.ecp.fr
Tue Feb 11 14:27:03 CET 2003
On Tue, Feb 11, 2003, Gansser, Martin wrote:
> I tried 0.5.1 on hpux 11.00, but it fails on compilation with the following
> error message:
It's been fixed since 0.5.1-test1, you need to attached patch.
--
Christophe Massiot.
-------------- next part --------------
Index: modules/video_output/sdl.c
===================================================================
RCS file: /cvs/videolan/vlc/modules/video_output/sdl.c,v
retrieving revision 1.7
retrieving revision 1.9
diff -u -r1.7 -r1.9
--- modules/video_output/sdl.c 13 Jan 2003 13:28:55 -0000 1.7
+++ modules/video_output/sdl.c 10 Feb 2003 23:50:08 -0000 1.9
@@ -2,7 +2,7 @@
* sdl.c: SDL video output display method
*****************************************************************************
* Copyright (C) 1998-2001 VideoLAN
- * $Id: sdl.c,v 1.7 2003/01/13 13:28:55 sam Exp $
+ * $Id: sdl.c,v 1.9 2003/02/10 23:50:08 massiot Exp $
*
* Authors: Samuel Hocevar <sam at zoy.org>
* Pierre Baillet <oct at zoy.org>
@@ -33,6 +33,7 @@
#include <vlc/vlc.h>
#include <vlc/intf.h>
#include <vlc/vout.h>
+#include <vlc/aout.h>
#include <sys/types.h>
#ifndef WIN32
@@ -502,42 +503,28 @@
case SDLK_b:
{
- aout_instance_t * p_aout;
audio_volume_t i_volume;
- p_aout = vlc_object_find( p_vout, VLC_OBJECT_AOUT,
- FIND_ANYWHERE );
- if( p_aout != NULL )
+ if ( !aout_VolumeDown( p_vout, 1, &i_volume ) )
+ {
+ msg_Dbg( p_vout, "audio volume is now %d", i_volume );
+ }
+ else
{
- if ( !aout_VolumeDown( p_aout, 1, &i_volume ) )
- {
- msg_Dbg( p_vout, "audio volume is now %d", i_volume );
- }
- else
- {
- msg_Dbg( p_vout, "audio volume: operation not supported" );
- }
- vlc_object_release( (vlc_object_t *)p_aout );
+ msg_Dbg( p_vout, "audio volume: operation not supported" );
}
}
break;
case SDLK_n:
{
- aout_instance_t * p_aout;
audio_volume_t i_volume;
- p_aout = vlc_object_find( p_vout, VLC_OBJECT_AOUT,
- FIND_ANYWHERE );
- if( p_aout != NULL )
+ if ( !aout_VolumeUp( p_vout, 1, &i_volume ) )
+ {
+ msg_Dbg( p_vout, "audio volume is now %d", i_volume );
+ }
+ else
{
- if ( !aout_VolumeUp( p_aout, 1, &i_volume ) )
- {
- msg_Dbg( p_vout, "audio volume is now %d", i_volume );
- }
- else
- {
- msg_Dbg( p_vout, "audio volume: operation not supported" );
- }
- vlc_object_release( (vlc_object_t *)p_aout );
+ msg_Dbg( p_vout, "audio volume: operation not supported" );
}
}
break;
More information about the vlc-devel
mailing list