GESTrackObject: fixe the connect_properties_signals
authorThibault Saunier <thibault.saunier@collabora.co.uk>
Fri, 25 Feb 2011 09:54:55 +0000 (10:54 +0100)
committerEdward Hervey <edward.hervey@collabora.co.uk>
Fri, 6 May 2011 08:39:05 +0000 (10:39 +0200)
ges/ges-track-object.c

index fb5dfa99fb78cf20a8ca22625192576e816c4b2f..312363a2abd0bc06700877502363c2f9d86bf23b 100644 (file)
@@ -522,8 +522,9 @@ connect_signal (gpointer key, gpointer value, gpointer user_data)
 static void
 connect_properties_signals (GESTrackObject * object)
 {
-  if (G_UNLIKELY (object->priv->properties_hashtable)) {
+  if (G_UNLIKELY (!object->priv->properties_hashtable)) {
     GST_WARNING ("The properties_hashtable hasn't been set");
+    return;
   }
 
   g_hash_table_foreach (object->priv->properties_hashtable,
@@ -801,7 +802,7 @@ ges_track_object_set_track (GESTrackObject * object, GESTrack * track)
  * ges_track_object_get_track:
  * @object: a #GESTrackObject
  *
- * Get the #GESTrack to which this object belongs. 
+ * Get the #GESTrack to which this object belongs.
  *
  * Returns: (transfer none): The #GESTrack to which this object belongs. Can be %NULL if it
  * is not in any track