totem r5772 - in trunk: . src/backend



Author: hadess
Date: Wed Oct 22 10:14:19 2008
New Revision: 5772
URL: http://svn.gnome.org/viewvc/totem?rev=5772&view=rev

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

	* src/backend/bacon-video-widget-gst-0.10.c (bvw_query_timeout):
	Don't tell the front-end we have metadata with a timeout when
	in capture or metadata mode, patch from Tim-Philipp MÃller
	<tim muller collabora co uk> (Closes: #554355)



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	Wed Oct 22 10:14:19 2008
@@ -1742,7 +1742,10 @@
     if (len != -1 && fmt == GST_FORMAT_TIME) {
       bvw->priv->stream_length = len / GST_MSECOND;
       if (bvw->priv->stream_length != prev_len) {
-        g_signal_emit (bvw, bvw_signals[SIGNAL_GOT_METADATA], 0, NULL);
+	 if (bvw->priv->use_type == BVW_USE_TYPE_AUDIO ||
+	     bvw->priv->use_type == BVW_USE_TYPE_VIDEO) {
+	   g_signal_emit (bvw, bvw_signals[SIGNAL_GOT_METADATA], 0, NULL);
+	 }
       }
     }
   } else {



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