Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
875e25d5
Commit
875e25d5
authored
Jan 19, 2009
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: remove vlc_object_find for AOUTs in menu and extended settings.
parent
1be27f13
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
21 deletions
+20
-21
modules/gui/qt4/components/extended_panels.cpp
modules/gui/qt4/components/extended_panels.cpp
+7
-14
modules/gui/qt4/input_manager.hpp
modules/gui/qt4/input_manager.hpp
+9
-0
modules/gui/qt4/menus.cpp
modules/gui/qt4/menus.cpp
+4
-7
No files found.
modules/gui/qt4/components/extended_panels.cpp
View file @
875e25d5
...
...
@@ -875,8 +875,7 @@ void Equalizer::updateUIFromCore()
float
f_preamp
;
int
i_preset
;
aout_instance_t
*
p_aout
=
(
aout_instance_t
*
)
vlc_object_find
(
p_intf
,
VLC_OBJECT_AOUT
,
FIND_ANYWHERE
);
aout_instance_t
*
p_aout
=
THEMIM
->
getAout
();
if
(
p_aout
)
{
psz_af
=
var_GetNonEmptyString
(
p_aout
,
"audio-filter"
);
...
...
@@ -938,8 +937,7 @@ void Equalizer::enable( bool en )
/* Function called when the set2Pass button is activated */
void
Equalizer
::
set2Pass
()
{
aout_instance_t
*
p_aout
=
(
aout_instance_t
*
)
vlc_object_find
(
p_intf
,
VLC_OBJECT_AOUT
,
FIND_ANYWHERE
);
aout_instance_t
*
p_aout
=
THEMIM
->
getAout
();
bool
b_2p
=
ui
.
eq2PassCheck
->
isChecked
();
if
(
p_aout
==
NULL
)
...
...
@@ -960,8 +958,7 @@ void Equalizer::set2Pass()
void
Equalizer
::
setPreamp
()
{
const
float
f
=
(
float
)(
ui
.
preampSlider
->
value
()
)
/
10
-
20
;
aout_instance_t
*
p_aout
=
(
aout_instance_t
*
)
vlc_object_find
(
p_intf
,
VLC_OBJECT_AOUT
,
FIND_ANYWHERE
);
aout_instance_t
*
p_aout
=
THEMIM
->
getAout
();
ui
.
preampLabel
->
setText
(
qtr
(
"Preamp
\n
"
)
+
QString
::
number
(
f
,
'f'
,
1
)
+
qtr
(
"dB"
)
);
...
...
@@ -990,8 +987,7 @@ void Equalizer::setCoreBands()
}
const
char
*
psz_values
=
values
.
toAscii
().
constData
();
aout_instance_t
*
p_aout
=
(
aout_instance_t
*
)
vlc_object_find
(
p_intf
,
VLC_OBJECT_AOUT
,
FIND_ANYWHERE
);
aout_instance_t
*
p_aout
=
THEMIM
->
getAout
();
if
(
p_aout
)
{
//delCallbacks( p_aout );
...
...
@@ -1053,8 +1049,7 @@ void Equalizer::setCorePreset( int i_preset )
char
*
psz_values
=
createValuesFromPreset
(
i_preset
);
if
(
!
psz_values
)
return
;
aout_instance_t
*
p_aout
=
(
aout_instance_t
*
)
vlc_object_find
(
p_intf
,
VLC_OBJECT_AOUT
,
FIND_ANYWHERE
);
aout_instance_t
*
p_aout
=
THEMIM
->
getAout
();
if
(
p_aout
)
{
delCallbacks
(
p_aout
);
...
...
@@ -1148,8 +1143,7 @@ Spatializer::Spatializer( intf_thread_t *_p_intf, QWidget *_parent ) :
BUTTONACT
(
enableCheck
,
enable
()
);
/* Write down initial values */
aout_instance_t
*
p_aout
=
(
aout_instance_t
*
)
vlc_object_find
(
p_intf
,
VLC_OBJECT_AOUT
,
FIND_ANYWHERE
);
aout_instance_t
*
p_aout
=
THEMIM
->
getAout
();
char
*
psz_af
;
if
(
p_aout
)
...
...
@@ -1204,8 +1198,7 @@ void Spatializer::setInitValues()
void
Spatializer
::
setValues
(
float
*
controlVars
)
{
aout_instance_t
*
p_aout
=
(
aout_instance_t
*
)
vlc_object_find
(
p_intf
,
VLC_OBJECT_AOUT
,
FIND_ANYWHERE
);
aout_instance_t
*
p_aout
=
THEMIM
->
getAout
();
for
(
int
i
=
0
;
i
<
NUM_SP_CTRL
;
i
++
)
{
...
...
modules/gui/qt4/input_manager.hpp
View file @
875e25d5
...
...
@@ -31,6 +31,7 @@
#include <vlc_input.h>
#include <vlc_vout.h>
#include <vlc_aout.h>
#include "qt4.hpp"
...
...
@@ -220,6 +221,14 @@ public:
return
NULL
;
}
aout_instance_t
*
getAout
()
{
aout_instance_t
*
p_aout
;
if
(
p_input
&&
!
input_Control
(
p_input
,
INPUT_GET_AOUT
,
&
p_aout
)
)
{
return
p_aout
;
}
}
private:
MainInputManager
(
intf_thread_t
*
);
static
MainInputManager
*
instance
;
...
...
modules/gui/qt4/menus.cpp
View file @
875e25d5
...
...
@@ -230,7 +230,7 @@ static int VideoAutoMenuBuilder( vout_thread_t *p_object,
return
VLC_SUCCESS
;
}
static
int
AudioAutoMenuBuilder
(
vlc_object
_t
*
p_object
,
static
int
AudioAutoMenuBuilder
(
aout_instance
_t
*
p_object
,
input_thread_t
*
p_input
,
vector
<
vlc_object_t
*>
&
objects
,
vector
<
const
char
*>
&
varnames
)
...
...
@@ -477,7 +477,7 @@ QMenu *QVLCMenu::AudioMenu( intf_thread_t *p_intf, QMenu * current )
{
vector
<
vlc_object_t
*>
objects
;
vector
<
const
char
*>
varnames
;
vlc_object
_t
*
p_aout
;
aout_instance
_t
*
p_aout
;
input_thread_t
*
p_input
;
if
(
!
current
)
current
=
new
QMenu
();
...
...
@@ -494,9 +494,7 @@ QMenu *QVLCMenu::AudioMenu( intf_thread_t *p_intf, QMenu * current )
p_input
=
THEMIM
->
getInput
();
if
(
p_input
)
vlc_object_hold
(
p_input
);
p_aout
=
(
vlc_object_t
*
)
vlc_object_find
(
p_intf
,
VLC_OBJECT_AOUT
,
FIND_ANYWHERE
);
p_aout
=
THEMIM
->
getAout
();
AudioAutoMenuBuilder
(
p_aout
,
p_input
,
objects
,
varnames
);
...
...
@@ -759,8 +757,7 @@ void QVLCMenu::AudioPopupMenu( intf_thread_t *p_intf )
if
(
p_input
)
{
vlc_object_hold
(
p_input
);
vlc_object_t
*
p_aout
=
(
vlc_object_t
*
)
vlc_object_find
(
p_input
,
VLC_OBJECT_AOUT
,
FIND_ANYWHERE
);
aout_instance_t
*
p_aout
=
THEMIM
->
getAout
();
AudioAutoMenuBuilder
(
p_aout
,
p_input
,
objects
,
varnames
);
if
(
p_aout
)
vlc_object_release
(
p_aout
);
...
...
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