[totem] bacon-video-widget: fix get_metadata for BVW_INFO_COVER
- From: Tim-Philipp MÃller <tpm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem] bacon-video-widget: fix get_metadata for BVW_INFO_COVER
- Date: Fri, 16 Dec 2011 01:53:12 +0000 (UTC)
commit ef06f5d853bc6eff433cf78227f0509246103a01
Author: Tim-Philipp MÃller <tim muller collabora co uk>
Date: Fri Dec 16 01:50:02 2011 +0000
bacon-video-widget: fix get_metadata for BVW_INFO_COVER
Must init the GValue before putting stuff into it. Makes
coverart display work again and fixes g_value_take_object()
warnings spew.
src/backend/bacon-video-widget-gst-0.10.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/backend/bacon-video-widget-gst-0.10.c b/src/backend/bacon-video-widget-gst-0.10.c
index 32d2bd0..dd39a80 100644
--- a/src/backend/bacon-video-widget-gst-0.10.c
+++ b/src/backend/bacon-video-widget-gst-0.10.c
@@ -5797,8 +5797,10 @@ bacon_video_widget_get_metadata (BaconVideoWidget * bvw,
break;
pixbuf = totem_gst_tag_list_get_cover (bvw->priv->tagcache);
- if (pixbuf)
+ if (pixbuf) {
+ g_value_init (value, GDK_TYPE_PIXBUF);
g_value_take_object (value, pixbuf);
+ }
}
break;
default:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]