Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
a0794f24
Commit
a0794f24
authored
Feb 10, 2003
by
Christophe Massiot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/video_output/sdl.c: Real fix for the aout_Volume* problem.
parent
0f35c7c8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
28 deletions
+13
-28
modules/video_output/sdl.c
modules/video_output/sdl.c
+13
-28
No files found.
modules/video_output/sdl.c
View file @
a0794f24
...
...
@@ -2,7 +2,7 @@
* sdl.c: SDL video output display method
*****************************************************************************
* Copyright (C) 1998-2001 VideoLAN
* $Id: sdl.c,v 1.
8 2003/02/10 23:16:37 marcari
Exp $
* $Id: sdl.c,v 1.
9 2003/02/10 23:50:08 massiot
Exp $
*
* Authors: Samuel Hocevar <sam@zoy.org>
* Pierre Baillet <oct@zoy.org>
...
...
@@ -42,7 +42,6 @@
#include SDL_INCLUDE_FILE
#include "aout_internal.h"
#include "netutils.h"
#define SDL_MAX_DIRECTBUFFERS 10
...
...
@@ -504,42 +503,28 @@ static int Manage( vout_thread_t *p_vout )
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
;
...
...
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