Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Steve Lhomme
VLC
Commits
13b03ef4
Commit
13b03ef4
authored
Sep 08, 2007
by
Ilkka Ollakka
Browse files
only emit rateChanged when it has changed
parent
b47c4dac
Changes
2
Hide whitespace changes
Inline
Side-by-side
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