totem r5769 - in trunk: . src/backend



Author: hadess
Date: Tue Oct 21 13:10:31 2008
New Revision: 5769
URL: http://svn.gnome.org/viewvc/totem?rev=5769&view=rev

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

	* src/backend/bacon-video-widget-gst-0.10.c (bvw_bus_message_cb):
	Fix playing property being wrong when an error occurs
	(Closes: #556039)



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	Tue Oct 21 13:10:31 2008
@@ -1399,14 +1399,15 @@
 
         error = bvw_error_from_gst_error (bvw, message);
 
-        g_signal_emit (bvw, bvw_signals[SIGNAL_ERROR], 0,
-                       error->message, TRUE, FALSE);
-
+        bvw->priv->target_state = GST_STATE_NULL;
         if (bvw->priv->play)
           gst_element_set_state (bvw->priv->play, GST_STATE_NULL);
 
-        bvw->priv->target_state = GST_STATE_NULL;
         bvw->priv->buffering = FALSE;
+
+        g_signal_emit (bvw, bvw_signals[SIGNAL_ERROR], 0,
+                       error->message, TRUE, FALSE);
+
         g_error_free (error);
       }
       break;



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