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
279777bf
Commit
279777bf
authored
May 16, 2009
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt4: keep input item rather than ID in the manager
parent
e24ee41b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
modules/gui/qt4/input_manager.cpp
modules/gui/qt4/input_manager.cpp
+5
-5
modules/gui/qt4/input_manager.hpp
modules/gui/qt4/input_manager.hpp
+1
-1
No files found.
modules/gui/qt4/input_manager.cpp
View file @
279777bf
...
...
@@ -62,7 +62,7 @@ InputManager::InputManager( QObject *parent, intf_thread_t *_p_intf) :
artUrl
=
""
;
p_input
=
NULL
;
i_rate
=
0
;
i_input_id
=
0
;
p_item
=
NULL
;
b_video
=
false
;
timeA
=
0
;
timeB
=
0
;
...
...
@@ -92,12 +92,12 @@ void InputManager::setInput( input_thread_t *_p_input )
UpdateNavigation
();
UpdateVout
();
addCallbacks
();
i_input_id
=
input_GetItem
(
p_input
)
->
i_id
;
p_item
=
input_GetItem
(
p_input
)
;
}
else
{
p_input
=
NULL
;
i_input_id
=
0
;
p_item
=
NULL
;
emit
rateChanged
(
INPUT_RATE_DEFAULT
);
}
}
...
...
@@ -112,7 +112,7 @@ void InputManager::delInput()
delCallbacks
();
i_old_playing_status
=
END_S
;
i_input_id
=
0
;
p_item
=
NULL
;
oldName
=
""
;
artUrl
=
""
;
b_video
=
false
;
...
...
@@ -170,7 +170,7 @@ void InputManager::customEvent( QEvent *event )
break
;
case
ItemChanged_Type
:
/* Ignore ItemChanged_Type event that does not apply to our input */
if
(
i_input
_id
==
ple
->
i_id
)
if
(
p_item
->
i
_id
==
ple
->
i_id
)
{
UpdateStatus
();
// UpdateName();
...
...
modules/gui/qt4/input_manager.hpp
View file @
279777bf
...
...
@@ -106,7 +106,7 @@ public:
private:
intf_thread_t
*
p_intf
;
input_thread_t
*
p_input
;
in
t
i_input_id
;
in
put_item_t
*
p_item
;
int
i_old_playing_status
;
QString
oldName
;
QString
artUrl
;
...
...
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