imagefreeze: Return TRUE from the LATENCY query handling
authorSebastian Dröge <sebastian@centricular.com>
Tue, 30 Jun 2020 15:37:06 +0000 (18:37 +0300)
committerSebastian Dröge <sebastian@centricular.com>
Tue, 30 Jun 2020 15:37:06 +0000 (18:37 +0300)
We always answer it successfully no matter what.

The default return value in the function is FALSE even if the code below
sets it again to FALSE.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-good/-/merge_requests/654>

gst/imagefreeze/gstimagefreeze.c

index 12d83b2..7b8e4ba 100644 (file)
@@ -576,6 +576,7 @@ gst_image_freeze_src_query (GstPad * pad, GstObject * parent, GstQuery * query)
          * can according to the negotiated framerate */
         gst_query_set_latency (query, FALSE, 0, GST_CLOCK_TIME_NONE);
       }
+      ret = TRUE;
       break;
     default:
       ret = FALSE;