summaryrefslogtreecommitdiffstats
path: root/gtk/src/hb-backend.c
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2012-05-26 08:07:18 +0000
committerjstebbins <[email protected]>2012-05-26 08:07:18 +0000
commitc18c9394b6641f183a86aabfe496b41086eb1905 (patch)
treecda1755e3bc32916b674c8abed737cad171d9274 /gtk/src/hb-backend.c
parentcdcf2526b9b85befc27a29431f71c917b59a6f9d (diff)
LinGui: fix crash when ejecting dvd
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4699 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'gtk/src/hb-backend.c')
-rw-r--r--gtk/src/hb-backend.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/gtk/src/hb-backend.c b/gtk/src/hb-backend.c
index 8bb36a552..692e17c33 100644
--- a/gtk/src/hb-backend.c
+++ b/gtk/src/hb-backend.c
@@ -2354,21 +2354,21 @@ ghb_get_source_audio_lang(gint titleindex, gint track)
hb_list_t * list;
hb_title_t * title;
hb_audio_config_t * audio;
- gchar *lang = NULL;
+ gchar *lang = "und";
g_debug("ghb_lookup_1st_audio_lang ()\n");
if (h_scan == NULL)
- return NULL;
+ return lang;
list = hb_get_titles( h_scan );
title = (hb_title_t*)hb_list_item( list, titleindex );
if (title == NULL)
- return NULL;
+ return lang;
if (hb_list_count( title->list_audio ) <= track)
- return NULL;
+ return lang;
audio = hb_list_audio_config_item(title->list_audio, track);
if (audio == NULL)
- return NULL;
+ return lang;
lang = g_strdup(audio->lang.iso639_2);
return lang;