totem r5763 - in branches/gnome-2-24: . src/backend



Author: hadess
Date: Mon Oct 13 09:37:03 2008
New Revision: 5763
URL: http://svn.gnome.org/viewvc/totem?rev=5763&view=rev

Log:
2008-10-13  Bastien Nocera  <hadess hadess net>

	* src/backend/bacon-video-widget-gst-0.10.c
	(bacon_video_widget_get_best_image): Patch from John Millikin
	<jmillikin gmail com> to also look for the GST_TAG_PREVIEW_IMAGE
	tag when trying to get audio file covers (Closes: #556074)



Modified:
   branches/gnome-2-24/ChangeLog
   branches/gnome-2-24/src/backend/bacon-video-widget-gst-0.10.c

Modified: branches/gnome-2-24/src/backend/bacon-video-widget-gst-0.10.c
==============================================================================
--- branches/gnome-2-24/src/backend/bacon-video-widget-gst-0.10.c	(original)
+++ branches/gnome-2-24/src/backend/bacon-video-widget-gst-0.10.c	Mon Oct 13 09:37:03 2008
@@ -4608,8 +4608,13 @@
     value = gst_tag_list_get_value_index (bvw->priv->tagcache,
 					  GST_TAG_IMAGE,
 					  i);
-    if (value == NULL)
-      break;
+    if (value == NULL) {
+      value = gst_tag_list_get_value_index (bvw->priv->tagcache,
+					    GST_TAG_PREVIEW_IMAGE,
+					    i);
+      if (value == NULL)
+	break;
+    }
 
     buffer = gst_value_get_buffer (value);
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]