File totem-Fix-fetching-the-cover-art.patch of Package totem

From 0ee69cd1edf0cedd7f4813b4ab9e3085fae60c78 Mon Sep 17 00:00:00 2001
From: Bastien Nocera <hadess@hadess.net>
Date: Tue, 18 Dec 2012 10:00:13 +0000
Subject: thumbnailer: Fix fetching the cover art on some systems

Initialise the type of image so that we can save the cover
image even if the image-type isn't defined.

https://bugzilla.gnome.org/show_bug.cgi?id=690286
---
diff --git a/src/gst/totem-gst-pixbuf-helpers.c b/src/gst/totem-gst-pixbuf-helpers.c
index 37bb493..1edef46 100644
--- a/src/gst/totem-gst-pixbuf-helpers.c
+++ b/src/gst/totem-gst-pixbuf-helpers.c
@@ -157,7 +157,7 @@ totem_gst_tag_list_get_cover_real (GstTagList *tag_list)
     GstSample *sample;
     GstCaps *caps;
     const GstStructure *caps_struct;
-    int type;
+    int type = GST_TAG_IMAGE_TYPE_UNDEFINED;
 
     if (!gst_tag_list_get_sample_index (tag_list, GST_TAG_IMAGE, i, &sample))
       break;
--
cgit v0.9.0.2
openSUSE Build Service is sponsored by