gnome-media r3922 - in trunk/grecord: . src
- From: malureau svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-media r3922 - in trunk/grecord: . src
- Date: Mon, 1 Sep 2008 19:15:48 +0000 (UTC)
Author: malureau
Date: Mon Sep 1 19:15:48 2008
New Revision: 3922
URL: http://svn.gnome.org/viewvc/gnome-media?rev=3922&view=rev
Log:
Don't abort() when the system settings are wrong
Modified:
trunk/grecord/ChangeLog
trunk/grecord/src/gsr-window.c
Modified: trunk/grecord/src/gsr-window.c
==============================================================================
--- trunk/grecord/src/gsr-window.c (original)
+++ trunk/grecord/src/gsr-window.c Mon Sep 1 19:15:48 2008
@@ -1311,7 +1311,7 @@
char *current_source;
shutdown_pipeline (priv->record);
if (!make_record_source (window))
- g_assert_not_reached ();
+ return;
current_source = gtk_combo_box_get_active_text (GTK_COMBO_BOX (window->priv->input));
fill_record_input (window, current_source);
}
@@ -2029,20 +2029,18 @@
/* now link it all together */
if (!(gst_element_link_many (source, level, encoder, NULL))) {
- show_profile_error (NULL, err->message,
+ show_profile_error (NULL, NULL,
_("Could not capture using the '%s' audio profile. "),
name);
- g_error_free (err);
gst_object_unref (pipeline->pipeline);
g_free (pipeline);
return NULL;
}
if (!gst_element_link (encoder, filesink)) {
- show_profile_error (NULL, err->message,
+ show_profile_error (NULL, NULL,
_("Could not write to a file using the '%s' audio profile. "),
name);
- g_error_free (err);
gst_object_unref (pipeline->pipeline);
g_free (pipeline);
return NULL;
@@ -2343,7 +2341,7 @@
gtk_widget_show (priv->input);
if (!make_record_source (window))
- g_assert_not_reached ();
+ exit (1);
fill_record_input (window, NULL);
g_signal_connect (priv->input, "changed",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]