[tracker-miners: 3/4] tracker-extract-libav: Don't count audio files with attached pictures as videos.



commit 4207f18ee323ad61dabb5795159907f7ae6878ef
Author: Andrew Branson <andrew branson jolla com>
Date:   Sun May 24 01:13:17 2020 +0200

    tracker-extract-libav: Don't count audio files with attached pictures as videos.
    
    Album art video streams in various files were causing files to be incorrectly identified as videos.

 src/tracker-extract/tracker-extract-libav.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/tracker-extract/tracker-extract-libav.c b/src/tracker-extract/tracker-extract-libav.c
index 3dcbae66d..e1ab54e01 100644
--- a/src/tracker-extract/tracker-extract-libav.c
+++ b/src/tracker-extract/tracker-extract-libav.c
@@ -99,7 +99,7 @@ tracker_extract_get_metadata (TrackerExtractInfo *info)
                }
        }
 
-       if (video_stream) {
+       if (video_stream && !(video_stream->disposition & AV_DISPOSITION_ATTACHED_PIC)) {
                tracker_resource_add_uri(metadata, "rdf:type", "nmm:Video");
 
                if (video_stream->codec->width > 0 && video_stream->codec->height > 0) {


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