From 0f1f1db17114b2ad6d23b554368ecbf81e823a9f Mon Sep 17 00:00:00 2001 From: Thibault Saunier Date: Wed, 13 May 2015 11:27:25 +0200 Subject: [PATCH] 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 --- validate/gst/validate/gst-validate-pipeline-monitor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/validate/gst/validate/gst-validate-pipeline-monitor.c b/validate/gst/validate/gst-validate-pipeline-monitor.c index 36de42d..4211785 100644 --- a/validate/gst/validate/gst-validate-pipeline-monitor.c +++ b/validate/gst/validate/gst-validate-pipeline-monitor.c @@ -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; -- 2.7.4