[tracker] tracker-extract: recognize application/vnd.ms-asf for the gstreamer plugin



commit e0a808530b1eb7afaf7a02b745e1a889680309c5
Author: Giovanni Campagna <gcampagna src gnome org>
Date:   Thu Jul 17 15:21:59 2014 +0200

    tracker-extract: recognize application/vnd.ms-asf for the gstreamer plugin
    
    application/vnd.ms-asf is the new standard name for video/x-ms-asf.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=733317

 src/tracker-extract/15-gstreamer-guess.rule     |    2 +-
 src/tracker-extract/tracker-extract-gstreamer.c |    3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/tracker-extract/15-gstreamer-guess.rule b/src/tracker-extract/15-gstreamer-guess.rule
index 599816c..ad71d03 100644
--- a/src/tracker-extract/15-gstreamer-guess.rule
+++ b/src/tracker-extract/15-gstreamer-guess.rule
@@ -1,4 +1,4 @@
 [ExtractorRule]
 ModulePath=libextract-gstreamer.so
-MimeTypes=video/3gpp;video/mp4;video/x-ms-asf;application/vnd.rn-realmedia
+MimeTypes=video/3gpp;video/mp4;video/x-ms-asf;application/vnd.ms-asf;application/vnd.rn-realmedia;
 FallbackRdfTypes=nfo:Media;nfo:Video;
diff --git a/src/tracker-extract/tracker-extract-gstreamer.c b/src/tracker-extract/tracker-extract-gstreamer.c
index 9f27bdd..a15967b 100644
--- a/src/tracker-extract/tracker-extract-gstreamer.c
+++ b/src/tracker-extract/tracker-extract-gstreamer.c
@@ -1699,7 +1699,8 @@ tracker_extract_get_metadata (TrackerExtractInfo *info)
                tracker_extract_gstreamer (uri, info, EXTRACT_MIME_SVG, graph);
        } else if (strcmp (mimetype, "video/3gpp") == 0 ||
                   strcmp (mimetype, "video/mp4") == 0 ||
-                  strcmp (mimetype, "video/x-ms-asf") == 0 ||
+                   strcmp (mimetype, "video/x-ms-asf") == 0 ||
+                   strcmp (mimetype, "application/vnd.ms-asf") == 0 ||
                   strcmp (mimetype, "application/vnd.rn-realmedia") == 0) {
                tracker_extract_gstreamer (uri, info, EXTRACT_MIME_GUESS, graph);
        } else if (g_str_has_prefix (mimetype, "audio/")) {


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