[tracker] Critical warning fixes in gstreamer extractor
- From: Philip Van Hoof <pvanhoof src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [tracker] Critical warning fixes in gstreamer extractor
- Date: Wed, 9 Sep 2009 09:09:32 +0000 (UTC)
commit eb1bfc7cda72afd401f96fa40737d2887ff01751
Author: Philip Van Hoof <philip codeminded be>
Date: Wed Sep 9 11:08:27 2009 +0200
Critical warning fixes in gstreamer extractor
src/tracker-extract/tracker-extract-gstreamer.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/tracker-extract/tracker-extract-gstreamer.c b/src/tracker-extract/tracker-extract-gstreamer.c
index 436bb77..4ea8687 100644
--- a/src/tracker-extract/tracker-extract-gstreamer.c
+++ b/src/tracker-extract/tracker-extract-gstreamer.c
@@ -329,11 +329,11 @@ get_embedded_album_art(MetadataExtractor *extractor)
extractor->album_art_data = buffer->data;
extractor->album_art_size = buffer->size;
extractor->album_art_mime = gst_structure_get_name (caps_struct);
- gst_object_unref (caps);
+ gst_caps_unref (caps);
return TRUE;
}
- gst_object_unref (caps);
+ gst_caps_unref (caps);
lindex++;
}
@@ -519,7 +519,7 @@ extract_metadata (MetadataExtractor *extractor,
s = NULL;
gst_tag_list_get_string (extractor->tagcache, GST_TAG_GENRE, &s);
- if (g_strcmp0 (s, "Unknown") != 0) {
+ if (s && strcmp (s, "Unknown") != 0) {
tracker_statement_list_insert (metadata, uri, NFO_PREFIX "genre", s);
}
g_free (s);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]