Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
13b03ef4
Commit
13b03ef4
authored
Sep 08, 2007
by
Ilkka Ollakka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
only emit rateChanged when it has changed
parent
b47c4dac
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
+9
-2
modules/gui/qt4/input_manager.cpp
modules/gui/qt4/input_manager.cpp
+8
-2
modules/gui/qt4/input_manager.hpp
modules/gui/qt4/input_manager.hpp
+1
-0
No files found.
modules/gui/qt4/input_manager.cpp
View file @
13b03ef4
...
...
@@ -40,6 +40,7 @@ InputManager::InputManager( QObject *parent, intf_thread_t *_p_intf) :
i_old_playing_status
=
END_S
;
old_name
=
""
;
p_input
=
NULL
;
i_rate
=
0
;
ON_TIMEOUT
(
update
()
);
}
...
...
@@ -101,8 +102,13 @@ void InputManager::update()
f_pos
=
var_GetFloat
(
p_input
,
"position"
);
emit
positionUpdated
(
f_pos
,
i_time
,
i_length
);
/* Update rate */
emit
rateChanged
(
var_GetInteger
(
p_input
,
"rate"
)
);
int
i_new_rate
=
var_GetInteger
(
p_input
,
"rate"
);
if
(
i_new_rate
!=
i_rate
)
{
i_rate
=
i_new_rate
;
/* Update rate */
emit
rateChanged
(
i_rate
);
}
/* Update navigation status */
vlc_value_t
val
;
val
.
i_int
=
0
;
...
...
modules/gui/qt4/input_manager.hpp
View file @
13b03ef4
...
...
@@ -46,6 +46,7 @@ private:
input_thread_t
*
p_input
;
int
i_old_playing_status
;
QString
old_name
;
int
i_rate
;
public
slots
:
void
togglePlayPause
();
void
update
();
///< Periodic updates
...
...
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