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
9b9b344e
Commit
9b9b344e
authored
Feb 13, 2009
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Simplify/fix InputManager::customEvent.
The DVD boutons (prev|menu|next)are now working again.
parent
0e2340e0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
42 deletions
+9
-42
modules/gui/qt4/input_manager.cpp
modules/gui/qt4/input_manager.cpp
+9
-42
No files found.
modules/gui/qt4/input_manager.cpp
View file @
9b9b344e
...
...
@@ -143,45 +143,7 @@ void InputManager::customEvent( QEvent *event )
int
i_type
=
event
->
type
();
IMEvent
*
ple
=
static_cast
<
IMEvent
*>
(
event
);
assert
(
!
(
i_type
!=
PositionUpdate_Type
&&
i_type
!=
ItemChanged_Type
&&
i_type
!=
ItemRateChanged_Type
&&
i_type
!=
ItemTitleChanged_Type
&&
i_type
!=
ItemEsChanged_Type
&&
i_type
!=
ItemTeletextChanged_Type
&&
i_type
!=
ItemStateChanged_Type
&&
i_type
!=
StatisticsUpdate_Type
&&
i_type
!=
InterfaceVoutUpdate_Type
&&
i_type
!=
MetaChanged_Type
&&
i_type
!=
NameChanged_Type
&&
i_type
!=
InfoChanged_Type
&&
i_type
!=
SynchroChanged_Type
&&
i_type
!=
CachingEvent_Type
&&
i_type
!=
BookmarksChanged_Type
&&
i_type
!=
InterfaceAoutUpdate_Type
&&
i_type
!=
RecordingEvent_Type
)
);
if
(
!
hasInput
()
)
return
;
if
(
i_type
==
CachingEvent_Type
)
UpdateCaching
();
if
(
(
i_type
!=
PositionUpdate_Type
&&
i_type
!=
ItemRateChanged_Type
&&
i_type
!=
ItemEsChanged_Type
&&
i_type
!=
ItemTeletextChanged_Type
&&
i_type
!=
ItemStateChanged_Type
&&
i_type
!=
StatisticsUpdate_Type
&&
i_type
!=
InterfaceVoutUpdate_Type
&&
i_type
!=
MetaChanged_Type
&&
i_type
!=
NameChanged_Type
&&
i_type
!=
InfoChanged_Type
&&
i_type
!=
SynchroChanged_Type
&&
i_type
!=
BookmarksChanged_Type
&&
i_type
!=
InterfaceAoutUpdate_Type
&&
i_type
!=
RecordingEvent_Type
)
&&
(
i_input_id
!=
ple
->
i_id
)
)
if
(
!
hasInput
()
)
return
;
#ifndef NDEBUG
...
...
@@ -200,9 +162,13 @@ void InputManager::customEvent( QEvent *event )
UpdateStats
();
break
;
case
ItemChanged_Type
:
UpdateStatus
();
// UpdateName();
UpdateArt
();
/* Ignore ItemChanged_Type event that does not apply to our input */
if
(
i_input_id
==
ple
->
i_id
)
{
UpdateStatus
();
// UpdateName();
UpdateArt
();
}
break
;
case
ItemStateChanged_Type
:
// TODO: Fusion with above state
...
...
@@ -255,6 +221,7 @@ void InputManager::customEvent( QEvent *event )
break
;
default:
msg_Warn
(
p_intf
,
"This shouldn't happen: %i"
,
i_type
);
assert
(
0
);
}
}
...
...
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