totem r5764 - in trunk: . src/backend



Author: hadess
Date: Mon Oct 13 09:37:57 2008
New Revision: 5764
URL: http://svn.gnome.org/viewvc/totem?rev=5764&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:
   trunk/ChangeLog
   trunk/src/backend/bacon-video-widget-gst-0.10.c

Modified: trunk/src/backend/bacon-video-widget-gst-0.10.c
==============================================================================
--- trunk/src/backend/bacon-video-widget-gst-0.10.c	(original)
+++ trunk/src/backend/bacon-video-widget-gst-0.10.c	Mon Oct 13 09:37:57 2008
@@ -4559,8 +4559,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]