From 6fe40c92bf3504e786c70d26f1184ea8fc3a5f0d Mon Sep 17 00:00:00 2001 From: Nirbheek Chauhan Date: Mon, 3 Oct 2016 11:27:54 +0530 Subject: [PATCH] imagefreeze: Forward latency queries to upstream Without this, latency queries to imagefreeze will fail. --- gst/imagefreeze/gstimagefreeze.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/gst/imagefreeze/gstimagefreeze.c b/gst/imagefreeze/gstimagefreeze.c index f122645f1c..b331bff64c 100644 --- a/gst/imagefreeze/gstimagefreeze.c +++ b/gst/imagefreeze/gstimagefreeze.c @@ -491,6 +491,13 @@ gst_image_freeze_src_query (GstPad * pad, GstObject * parent, GstQuery * query) ret = TRUE; break; } + case GST_QUERY_LATENCY: + /* This will only return an accurate latency for the first buffer since + * all further buffers outputted by us are just copies of that one, and + * the latency is 0 in that case. However, latency changes are not + * straightforward, so let's do the conservative fix for now. */ + ret = gst_pad_query_default (pad, parent, query); + break; default: ret = FALSE; break;