validate: Recalculate latency on LATENCY messages

This commit is contained in:
Thibault Saunier 2017-06-30 12:32:56 -04:00
parent c1f613d8e7
commit edd789cfb7

View file

@ -95,6 +95,9 @@ bus_callback (GstBus * bus, GstMessage * message, gpointer data)
break;
case GST_MESSAGE_ASYNC_DONE:
break;
case GST_MESSAGE_LATENCY:
gst_bin_recalculate_latency (GST_BIN (pipeline));
break;
case GST_MESSAGE_STATE_CHANGED:
if (GST_MESSAGE_SRC (message) == GST_OBJECT (pipeline)) {
GstState oldstate, newstate, pending;