[tracker/cuesheets] tracker-extract-gstreamer: Don't test for NULL tagcache, it's never NULL
- From: Martyn James Russell <mr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/cuesheets] tracker-extract-gstreamer: Don't test for NULL tagcache, it's never NULL
- Date: Fri, 30 Sep 2011 13:33:21 +0000 (UTC)
commit a6f3a1e4427e4fdd29b61a8c704aabb44ff5eb7b
Author: Martyn Russell <martyn lanedo com>
Date: Fri Sep 30 14:32:22 2011 +0100
tracker-extract-gstreamer: Don't test for NULL tagcache, it's never NULL
Instead use !gst_tag_list_is_empty()
src/tracker-extract/tracker-extract-gstreamer.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/tracker-extract/tracker-extract-gstreamer.c b/src/tracker-extract/tracker-extract-gstreamer.c
index 34736af..03918ae 100644
--- a/src/tracker-extract/tracker-extract-gstreamer.c
+++ b/src/tracker-extract/tracker-extract-gstreamer.c
@@ -938,8 +938,10 @@ extract_metadata (MetadataExtractor *extractor,
}
}
- if (extractor->mime == EXTRACT_MIME_GUESS && extractor->tagcache)
+ if (extractor->mime == EXTRACT_MIME_GUESS && !gst_tag_list_is_empty (extractor->tagcache)) {
extractor_guess_content_type (extractor);
+ }
+
if (extractor->mime == EXTRACT_MIME_GUESS) {
g_warning ("Cannot guess real stream type if no tags were read! "
"Defaulting to Video.");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]