From b3296183fcc8372c6e33b6aee8ea8fb1fd019d25 Mon Sep 17 00:00:00 2001 From: Jan Schmidt Date: Mon, 16 Jan 2017 09:41:19 +1100 Subject: [PATCH] gstbin: Quieten a noisy FIXME about duration caching Only print this FIXME once per run, at it's pretty annoying in lots of logs otherwise. --- gst/gstbin.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/gst/gstbin.c b/gst/gstbin.c index bb17885906..bcc163ec42 100644 --- a/gst/gstbin.c +++ b/gst/gstbin.c @@ -4347,7 +4347,17 @@ gst_bin_query (GstElement * element, GstQuery * query) } GST_OBJECT_UNLOCK (bin); #else - GST_FIXME ("implement duration caching in GstBin again"); +#ifndef GST_DISABLE_GST_DEBUG + G_STMT_START { + /* Quieten this particularly annoying FIXME a bit: */ + static gboolean printed_fixme = FALSE; + if (!printed_fixme) { + GST_FIXME ("implement duration caching in GstBin again"); + printed_fixme = TRUE; + } + } + G_STMT_END; +#endif #endif /* no cached value found, iterate and collect durations */ fold_func = (GstIteratorFoldFunction) bin_query_duration_fold; -- 2.34.1