mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
validate:pipeline-monitor: Stop printing position when not possible
Summary: If from anything >= PAUSED to anything <= READY we can not query pipeline position, so do not try to. Depends on D168 Reviewers: Mathieu_Du Differential Revision: http://phabricator.freedesktop.org/D169
This commit is contained in:
parent
2ccae6e500
commit
0f1f1db171
1 changed files with 1 additions and 1 deletions
|
@ -135,7 +135,7 @@ _bus_handler (GstBus * bus, GstMessage * message,
|
|||
monitor->print_pos_srcid =
|
||||
g_timeout_add (PRINT_POSITION_TIMEOUT,
|
||||
(GSourceFunc) print_position, monitor);
|
||||
} else if (oldstate == GST_STATE_PAUSED && newstate == GST_STATE_READY) {
|
||||
} else if (oldstate >= GST_STATE_PAUSED && newstate <= GST_STATE_READY) {
|
||||
if (monitor->print_pos_srcid
|
||||
&& g_source_remove (monitor->print_pos_srcid))
|
||||
monitor->print_pos_srcid = 0;
|
||||
|
|
Loading…
Reference in a new issue