[tracker] tracker-extract: Split generic gstreamer/libav extract rules



commit 00775457ef0a8724f8e55ba62bb534057d3a95ee
Author: Carlos Garnacho <carlosg gnome org>
Date:   Thu Feb 13 13:42:35 2014 +0100

    tracker-extract: Split generic gstreamer/libav extract rules
    
    This is so audio, images and videos going through these modules get
    more specific rdf:types than nfo:Media, as it is usually nfo:Media
    subclasses which get flagged as tracker:notify. This fixes situations
    where GraphUpdated wouldn't be emitted for files where it really
    should.

 .../90-gstreamer-audio-generic.rule                |    4 ++++
 src/tracker-extract/90-gstreamer-generic.rule      |    4 ----
 .../90-gstreamer-image-generic.rule                |    4 ++++
 .../90-gstreamer-video-generic.rule                |    4 ++++
 src/tracker-extract/90-libav-audio-generic.rule    |    4 ++++
 ...av-generic.rule => 90-libav-video-generic.rule} |    3 ++-
 src/tracker-extract/Makefile.am                    |   11 +++++++----
 7 files changed, 25 insertions(+), 9 deletions(-)
---
diff --git a/src/tracker-extract/90-gstreamer-audio-generic.rule 
b/src/tracker-extract/90-gstreamer-audio-generic.rule
new file mode 100644
index 0000000..4355f2c
--- /dev/null
+++ b/src/tracker-extract/90-gstreamer-audio-generic.rule
@@ -0,0 +1,4 @@
+[ExtractorRule]
+ModulePath=libextract-gstreamer.so
+MimeTypes=audio/*;
+FallbackRdfTypes=nmm:MusicPiece;nfo:Audio;
diff --git a/src/tracker-extract/90-gstreamer-image-generic.rule 
b/src/tracker-extract/90-gstreamer-image-generic.rule
new file mode 100644
index 0000000..642c3e0
--- /dev/null
+++ b/src/tracker-extract/90-gstreamer-image-generic.rule
@@ -0,0 +1,4 @@
+[ExtractorRule]
+ModulePath=libextract-gstreamer.so
+MimeTypes=image/*;
+FallbackRdfTypes=nfo:Image;nmm:Photo;
diff --git a/src/tracker-extract/90-gstreamer-video-generic.rule 
b/src/tracker-extract/90-gstreamer-video-generic.rule
new file mode 100644
index 0000000..3d9e462
--- /dev/null
+++ b/src/tracker-extract/90-gstreamer-video-generic.rule
@@ -0,0 +1,4 @@
+[ExtractorRule]
+ModulePath=libextract-gstreamer.so
+MimeTypes=video/*;
+FallbackRdfTypes=nmm:Video;
diff --git a/src/tracker-extract/90-libav-audio-generic.rule b/src/tracker-extract/90-libav-audio-generic.rule
new file mode 100644
index 0000000..59e9484
--- /dev/null
+++ b/src/tracker-extract/90-libav-audio-generic.rule
@@ -0,0 +1,4 @@
+[ExtractorRule]
+ModulePath=libextract-libav.so
+MimeTypes=audio/*;
+FallbackRdfTypes=nmm:MusicPiece;nfo:Audio;
diff --git a/src/tracker-extract/90-libav-generic.rule b/src/tracker-extract/90-libav-video-generic.rule
similarity index 50%
rename from src/tracker-extract/90-libav-generic.rule
rename to src/tracker-extract/90-libav-video-generic.rule
index 6dac8bb..675540c 100644
--- a/src/tracker-extract/90-libav-generic.rule
+++ b/src/tracker-extract/90-libav-video-generic.rule
@@ -1,3 +1,4 @@
 [ExtractorRule]
 ModulePath=libextract-libav.so
-MimeTypes=audio/*;video/*;
+MimeTypes=video/*;
+FallbackRdfTypes=nmm:Video;
diff --git a/src/tracker-extract/Makefile.am b/src/tracker-extract/Makefile.am
index feb296e..0bcd130 100644
--- a/src/tracker-extract/Makefile.am
+++ b/src/tracker-extract/Makefile.am
@@ -40,9 +40,12 @@ rules_files = \
        11-msoffice-xml.rule \
        15-gstreamer-guess.rule \
        15-playlist.rule \
-       90-gstreamer-generic.rule \
+       90-gstreamer-image-generic.rule \
+       90-gstreamer-audio-generic.rule \
+       90-gstreamer-video-generic.rule \
        90-text-generic.rule \
-        90-libav-generic.rule \
+       90-libav-audio-generic.rule \
+       90-libav-video-generic.rule \
        91-gstreamer-generic-dlna.rule \
        92-xine-generic.rule \
        93-mplayer-generic.rule \
@@ -110,7 +113,7 @@ endif
 
 if HAVE_GSTREAMER
 extractmodules_LTLIBRARIES += libextract-gstreamer.la
-rules_DATA += 10-svg.rule 15-gstreamer-guess.rule 90-gstreamer-generic.rule
+rules_DATA += 10-svg.rule 15-gstreamer-guess.rule 90-gstreamer-image-generic.rule 
90-gstreamer-audio-generic.rule 90-gstreamer-video-generic.rule
 endif
 
 # Gstreamer with GUPnP-DLNA backend?
@@ -176,7 +179,7 @@ endif
 
 if HAVE_LIBAV
 extractmodules_LTLIBRARIES += libextract-libav.la
-rules_DATA += 90-libav-generic.rule
+rules_DATA += 90-libav-audio-generic.rule 90-libav-video-generic.rule
 endif
 
 # ABW


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