[tracker-miners/sam/file-processed-signal: 7/9] tracker-extract-gstreamer: Return FALSE if we got no metadata



commit d8e8e9dc44c5be1879384ad4e8de99c842f9ab50
Author: Sam Thursfield <sam afuera me uk>
Date:   Sat Mar 21 20:22:05 2020 +0100

    tracker-extract-gstreamer: Return FALSE if we got no metadata
    
    If we don't have any data to return, the extraction was not successful
    so we should return FALSE in this case.

 src/tracker-extract/tracker-extract-gstreamer.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/tracker-extract/tracker-extract-gstreamer.c b/src/tracker-extract/tracker-extract-gstreamer.c
index eca6be300..efd7ee032 100644
--- a/src/tracker-extract/tracker-extract-gstreamer.c
+++ b/src/tracker-extract/tracker-extract-gstreamer.c
@@ -1365,7 +1365,7 @@ tracker_extract_get_metadata (TrackerExtractInfo *info)
        }
 
        g_free (uri);
-       return TRUE;
+       return (main_resource != NULL);
 }
 
 G_MODULE_EXPORT gboolean


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