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
1be27f13
Commit
1be27f13
authored
Jan 19, 2009
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: more removal of vlc_object_find
parent
3d52fe95
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
11 deletions
+10
-11
modules/gui/qt4/menus.cpp
modules/gui/qt4/menus.cpp
+10
-11
No files found.
modules/gui/qt4/menus.cpp
View file @
1be27f13
...
...
@@ -172,7 +172,7 @@ void addMIMStaticEntry( intf_thread_t *p_intf,
objects.push_back( 0 ); varnames.push_back( "" ); \
i_last_separator = objects.size(); }
static
int
InputAutoMenuBuilder
(
vlc_object
_t
*
p_object
,
static
int
InputAutoMenuBuilder
(
input_thread
_t
*
p_object
,
vector
<
vlc_object_t
*>
&
objects
,
vector
<
const
char
*>
&
varnames
)
{
...
...
@@ -567,10 +567,6 @@ QMenu *QVLCMenu::VideoMenu( intf_thread_t *p_intf, QMenu *current )
**/
QMenu
*
QVLCMenu
::
NavigMenu
(
intf_thread_t
*
p_intf
,
QMenu
*
menu
)
{
vlc_object_t
*
p_object
;
vector
<
vlc_object_t
*>
objects
;
vector
<
const
char
*>
varnames
;
if
(
!
menu
)
menu
=
new
QMenu
();
if
(
menu
->
isEmpty
()
)
...
...
@@ -586,9 +582,12 @@ QMenu *QVLCMenu::NavigMenu( intf_thread_t *p_intf, QMenu *menu )
ACT_ADD
(
menu
,
"navigation"
,
qtr
(
"&Navigation"
)
);
}
p_object
=
(
vlc_object_t
*
)
vlc_object_find
(
p_intf
,
VLC_OBJECT_INPUT
,
FIND_ANYWHERE
);
InputAutoMenuBuilder
(
p_object
,
objects
,
varnames
);
input_thread_t
*
p_object
;
vector
<
vlc_object_t
*>
objects
;
vector
<
const
char
*>
varnames
;
p_object
=
THEMIM
->
getInput
();
InputAutoMenuBuilder
(
p_object
,
objects
,
varnames
);
PUSH_VAR
(
"prev-title"
);
PUSH_VAR
(
"next-title"
);
PUSH_VAR
(
"prev-chapter"
);
...
...
@@ -780,7 +779,7 @@ void QVLCMenu::MiscPopupMenu( intf_thread_t *p_intf )
{
vlc_object_hold
(
p_input
);
varnames
.
push_back
(
"audio-es"
);
InputAutoMenuBuilder
(
VLC_OBJECT
(
p_input
)
,
objects
,
varnames
);
InputAutoMenuBuilder
(
p_input
,
objects
,
varnames
);
PUSH_SEPARATOR
;
}
...
...
@@ -839,7 +838,7 @@ void QVLCMenu::PopupMenu( intf_thread_t *p_intf, bool show )
menu
->
addSeparator
();
vlc_object_hold
(
p_input
);
InputAutoMenuBuilder
(
VLC_OBJECT
(
p_input
)
,
objects
,
varnames
);
InputAutoMenuBuilder
(
p_input
,
objects
,
varnames
);
vlc_object_release
(
p_input
);
submenu
=
new
QMenu
(
menu
);
...
...
@@ -1118,7 +1117,7 @@ void QVLCMenu::UpdateItem( intf_thread_t *p_intf, QMenu *menu,
bool
forceDisabled
=
false
;
if
(
!
strcmp
(
psz_var
,
"spu-es"
)
)
{
v
lc_object
_t
*
p_vout
=
THEMIM
->
getVout
();
v
out_thread
_t
*
p_vout
=
THEMIM
->
getVout
();
forceDisabled
=
(
p_vout
==
NULL
);
if
(
p_vout
)
vlc_object_release
(
p_vout
);
...
...
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