totem r5567 - in trunk: . src/backend



Author: hadess
Date: Mon Aug 18 15:05:24 2008
New Revision: 5567
URL: http://svn.gnome.org/viewvc/totem?rev=5567&view=rev

Log:
2008-08-18  Bastien Nocera  <hadess hadess net>

	* src/backend/bacon-video-widget-gst-0.10.c (bvw_bus_message_cb):
	When we have a streaming title, pass it on using the TITLE_CHANGE
	signal. Fixes stream title not updating for soma.fm streams
	(Closes: #471233)



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 Aug 18 15:05:24 2008
@@ -1449,7 +1449,17 @@
        * only later when we can be sure we got it all */
       if (bvw->priv->use_type == BVW_USE_TYPE_VIDEO ||
           bvw->priv->use_type == BVW_USE_TYPE_AUDIO) {
-        g_signal_emit (bvw, bvw_signals[SIGNAL_GOT_METADATA], 0);
+	/* If we updated metadata and we have a new title, send it
+ 	 * using TITLE_CHANGE, so that the UI knows it has a new
+	 * streaming title */
+	GValue value = { 0, };
+
+	g_signal_emit (bvw, bvw_signals[SIGNAL_GOT_METADATA], 0);
+
+	bacon_video_widget_get_metadata (bvw, BVW_INFO_TITLE, &value);
+	if (g_value_get_string (&value))
+	  g_signal_emit (bvw, bvw_signals[SIGNAL_TITLE_CHANGE], 0, g_value_get_string (&value));
+	g_value_unset (&value);
       }
       break;
     }



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