gnome-media r3815 - trunk/profiles



Author: malureau
Date: Sun Mar 23 17:39:28 2008
New Revision: 3815
URL: http://svn.gnome.org/viewvc/gnome-media?rev=3815&view=rev

Log:
avoid crash when there is no profile


Modified:
   trunk/profiles/gnome-audio-profiles-test.c

Modified: trunk/profiles/gnome-audio-profiles-test.c
==============================================================================
--- trunk/profiles/gnome-audio-profiles-test.c	(original)
+++ trunk/profiles/gnome-audio-profiles-test.c	Sun Mar 23 17:39:28 2008
@@ -51,9 +51,11 @@
   GstMessage *msg = NULL;
   GstBus *bus = NULL;
 
+  profile = gm_audio_profile_choose_get_active (combo);
+  g_return_if_fail (profile != NULL);
+
   gtk_widget_set_sensitive (GTK_WIDGET (button), FALSE);
 
-  profile = gm_audio_profile_choose_get_active (combo);
   extension = g_strdup (gm_audio_profile_get_extension (profile));
   partialpipe = g_strdup (gm_audio_profile_get_pipeline (profile));
 



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