sound-juicer r1990 - in trunk: . src



Author: rburton
Date: Mon Jan 21 10:25:01 2008
New Revision: 1990
URL: http://svn.gnome.org/viewvc/sound-juicer?rev=1990&view=rev

Log:
2008-01-21  Ross Burton  <ross burtonini com>

	* src/sj-play.c:
	Small re-organisation.


Modified:
   trunk/ChangeLog
   trunk/src/sj-play.c

Modified: trunk/src/sj-play.c
==============================================================================
--- trunk/src/sj-play.c	(original)
+++ trunk/src/sj-play.c	Mon Jan 21 10:25:01 2008
@@ -239,15 +239,15 @@
   GstState old_state, new_state;
   GstStateChange transition;
 
-  gst_message_parse_state_changed (message, &old_state, &new_state, NULL);
-  transition = GST_STATE_TRANSITION (old_state, new_state);
-
   /* all pipe elements will receive state transition messages,
    * so we filter those out. This won't be neccessary after
    * the playbin migration */
-  if ((GstElement*)GST_MESSAGE_SRC(message) != pipeline)
+  if ((GstElement*)GST_MESSAGE_SRC (message) != pipeline)
     return;
 
+  gst_message_parse_state_changed (message, &old_state, &new_state, NULL);
+  transition = GST_STATE_TRANSITION (old_state, new_state);
+
   if (transition == GST_STATE_CHANGE_READY_TO_PAUSED) {
     char *title;
     gtk_widget_show (seek_scale);



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