brasero r1115 - in trunk: . src



Author: philippr
Date: Mon Aug 18 13:27:49 2008
New Revision: 1115
URL: http://svn.gnome.org/viewvc/brasero?rev=1115&view=rev

Log:
	Small improvement

	* src/brasero-metadata.c (brasero_metadata_get_info_async):


Modified:
   trunk/ChangeLog
   trunk/src/brasero-metadata.c

Modified: trunk/src/brasero-metadata.c
==============================================================================
--- trunk/src/brasero-metadata.c	(original)
+++ trunk/src/brasero-metadata.c	Mon Aug 18 13:27:49 2008
@@ -1448,6 +1448,7 @@
 				 BraseroMetadataFlag flags)
 {
 	BraseroMetadataPrivate *priv;
+	GstStateChangeReturn state_change;
 
 	priv = BRASERO_METADATA_PRIVATE (self);
 
@@ -1468,10 +1469,11 @@
 		return FALSE;
 	}
 
-	priv->started = 1;
-	gst_element_set_state (GST_ELEMENT (priv->pipeline), BRASERO_METADATA_INITIAL_STATE);
+	state_change = gst_element_set_state (GST_ELEMENT (priv->pipeline),
+					      BRASERO_METADATA_INITIAL_STATE);
 
-	return TRUE;
+	priv->started = (state_change != GST_STATE_CHANGE_FAILURE);
+	return priv->started;
 }
 
 void



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