[tracker/tracker-0.10-nb276745] tracker-extract, gstreamer: Only ignore for image type files
- From: Philip Van Hoof <pvanhoof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/tracker-0.10-nb276745] tracker-extract, gstreamer: Only ignore for image type files
- Date: Wed, 19 Oct 2011 09:14:16 +0000 (UTC)
commit c0453dec18ad42ab454c2f770e51e8357c5e8767
Author: Philip Van Hoof <philip codeminded be>
Date: Wed Oct 19 11:13:44 2011 +0200
tracker-extract, gstreamer: Only ignore for image type files
src/tracker-extract/tracker-extract-gstreamer.c | 37 ++++++++++++++++-------
1 files changed, 26 insertions(+), 11 deletions(-)
---
diff --git a/src/tracker-extract/tracker-extract-gstreamer.c b/src/tracker-extract/tracker-extract-gstreamer.c
index b0057e1..8923cc6 100644
--- a/src/tracker-extract/tracker-extract-gstreamer.c
+++ b/src/tracker-extract/tracker-extract-gstreamer.c
@@ -1735,21 +1735,10 @@ tracker_extract_gstreamer (const gchar *uri,
{
MetadataExtractor *extractor;
gchar *artist, *album, *scount;
- gchar *filename;
g_return_if_fail (uri);
g_return_if_fail (metadata);
- filename = g_filename_from_uri (uri, NULL, NULL);
-
- if (g_slist_find_custom (tracker_config_get_ignore_images_under (
- tracker_main_get_config()),
- filename, path_is_in_path)) {
- g_free (filename);
- return;
- }
-
- g_free (filename);
gst_init (NULL, NULL);
@@ -1829,6 +1818,19 @@ extract_gstreamer_image (const gchar *uri,
TrackerSparqlBuilder *preupdate,
TrackerSparqlBuilder *metadata)
{
+ gchar *filename;
+
+ filename = g_filename_from_uri (uri, NULL, NULL);
+
+ if (g_slist_find_custom (tracker_config_get_ignore_images_under (
+ tracker_main_get_config()),
+ filename, path_is_in_path)) {
+ g_free (filename);
+ return;
+ }
+
+ g_free (filename);
+
tracker_extract_gstreamer (uri, preupdate, metadata, EXTRACT_MIME_IMAGE);
}
@@ -1837,6 +1839,19 @@ extract_gstreamer_svg (const gchar *uri,
TrackerSparqlBuilder *preupdate,
TrackerSparqlBuilder *metadata)
{
+ gchar *filename;
+
+ filename = g_filename_from_uri (uri, NULL, NULL);
+
+ if (g_slist_find_custom (tracker_config_get_ignore_images_under (
+ tracker_main_get_config()),
+ filename, path_is_in_path)) {
+ g_free (filename);
+ return;
+ }
+
+ g_free (filename);
+
tracker_extract_gstreamer (uri, preupdate, metadata, EXTRACT_MIME_SVG);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]