sound-juicer r2145 - in trunk: . src
- From: rburton svn gnome org
- To: svn-commits-list gnome org
- Subject: sound-juicer r2145 - in trunk: . src
- Date: Sun, 13 Apr 2008 16:19:04 +0100 (BST)
Author: rburton
Date: Sun Apr 13 16:19:03 2008
New Revision: 2145
URL: http://svn.gnome.org/viewvc/sound-juicer?rev=2145&view=rev
Log:
2008-04-13 Ross Burton <ross burtonini com>
* src/sj-extracting.c:
Fix crash when no profile is selected (#364666, thanks Matthew Martin).
Modified:
trunk/ChangeLog
trunk/src/sj-extracting.c
Modified: trunk/src/sj-extracting.c
==============================================================================
--- trunk/src/sj-extracting.c (original)
+++ trunk/src/sj-extracting.c Sun Apr 13 16:19:03 2008
@@ -140,7 +140,13 @@
gnome_vfs_uri_unref (uri); uri = new;
g_free (realpath);
- extension = gm_audio_profile_get_extension (profile);
+ if (profile == NULL) {
+ g_set_error (error, 0, 0, _("Failed to get output format"));
+ return NULL;
+ } else {
+ extension = gm_audio_profile_get_extension (profile);
+ }
+
len_extension = 1 + strlen (extension);
#if defined(NAME_MAX) && NAME_MAX > 0
max_realfile = NAME_MAX - len_extension;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]