[tracker-miners] tracker-writeback: Change error condition



commit 03b3ae20fb8a275f565d01dfc208ba8b56c779a0
Author: Carlos Garnacho <carlosg gnome org>
Date:   Fri Oct 29 23:47:16 2021 +0200

    tracker-writeback: Change error condition
    
    CID: #373647

 src/tracker-writeback/tracker-writeback-gstreamer.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/src/tracker-writeback/tracker-writeback-gstreamer.c 
b/src/tracker-writeback/tracker-writeback-gstreamer.c
index e2c2ed1ec..eb305d89f 100644
--- a/src/tracker-writeback/tracker-writeback-gstreamer.c
+++ b/src/tracker-writeback/tracker-writeback-gstreamer.c
@@ -516,7 +516,8 @@ generate_gst_sample_from_image (const GValue *val)
        const gchar *image_url = g_value_get_string (val);
 
        filename = g_filename_from_uri (image_url, NULL, &err);
-       if (!filename && err != NULL) {
+       if (!filename) {
+               g_assert (err != NULL);
                g_warning ("could not get filename for url (%s): %s", image_url, err->message);
                g_clear_error (&err);
                return img_sample;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]