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
45052c77
Commit
45052c77
authored
Jan 19, 2009
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt4: Deinline get(Aout|Vout)()
parent
9467836a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
21 deletions
+26
-21
modules/gui/qt4/input_manager.cpp
modules/gui/qt4/input_manager.cpp
+23
-0
modules/gui/qt4/input_manager.hpp
modules/gui/qt4/input_manager.hpp
+3
-21
No files found.
modules/gui/qt4/input_manager.cpp
View file @
45052c77
...
...
@@ -848,6 +848,29 @@ MainInputManager::~MainInputManager()
var_DelCallback
(
THEPL
,
"playlist-current"
,
PLItemChanged
,
this
);
}
vout_thread_t
*
MainInputManager
::
getVout
()
{
vout_thread_t
**
pp_vout
;
int
i_vout
;
if
(
p_input
&&
!
input_Control
(
p_input
,
INPUT_GET_VOUTS
,
&
pp_vout
,
&
i_vout
)
)
{
for
(
int
i
=
1
;
i
<
i_vout
;
i
++
)
vlc_object_release
(
pp_vout
[
i
]);
vout_thread_t
*
p_tmp
=
pp_vout
[
0
];
free
(
pp_vout
);
return
p_tmp
;
}
return
NULL
;
}
aout_instance_t
*
MainInputManager
::
getAout
()
{
aout_instance_t
*
p_aout
;
if
(
p_input
&&
!
input_Control
(
p_input
,
INPUT_GET_AOUT
,
&
p_aout
)
)
{
return
p_aout
;
}
return
NULL
;
}
void
MainInputManager
::
customEvent
(
QEvent
*
event
)
{
int
type
=
event
->
type
();
...
...
modules/gui/qt4/input_manager.hpp
View file @
45052c77
...
...
@@ -208,28 +208,10 @@ public:
input_thread_t
*
getInput
()
{
return
p_input
;
};
InputManager
*
getIM
()
{
return
im
;
};
vout_thread_t
*
getVout
()
{
vout_thread_t
**
pp_vout
;
int
i_vout
;
if
(
p_input
&&
!
input_Control
(
p_input
,
INPUT_GET_VOUTS
,
&
pp_vout
,
&
i_vout
)
)
{
for
(
int
i
=
1
;
i
<
i_vout
;
i
++
)
vlc_object_release
(
pp_vout
[
i
]);
vout_thread_t
*
p_tmp
=
pp_vout
[
0
];
free
(
pp_vout
);
return
p_tmp
;
}
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
;
}
return
NULL
;
}
vout_thread_t
*
getVout
();
aout_instance_t
*
getAout
();
private:
MainInputManager
(
intf_thread_t
*
);
static
MainInputManager
*
instance
;
...
...
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