qroverlay: Reset data_changed after we use the info
authorThibault Saunier <tsaunier@igalia.com>
Mon, 7 Mar 2022 15:44:04 +0000 (15:44 +0000)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Wed, 27 Apr 2022 15:09:47 +0000 (15:09 +0000)
It was never reset so it was always TRUE once the data was changed!

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2299>

subprojects/gst-plugins-bad/ext/qroverlay/gstqroverlay.c

index cdde8cf..7b8b835 100644 (file)
@@ -116,6 +116,7 @@ get_qrcode_content (GstBaseQROverlay * base, GstBuffer * buf,
   GST_OBJECT_LOCK (self);
   content = g_strdup (self->data);
   *reuse_prev = self->data_changed;
+  self->data_changed = FALSE;
   GST_OBJECT_UNLOCK (self);
 
   return content;