summaryrefslogtreecommitdiffstats
path: root/gtk/src/hb-backend.c
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2009-05-02 23:58:23 +0000
committerjstebbins <[email protected]>2009-05-02 23:58:23 +0000
commit5ba946fe336baba0d53ae1ca61691d43982761c6 (patch)
tree55fb15037284f5e7536d3cfc3bdb28288b5f42a2 /gtk/src/hb-backend.c
parent1b8d2b8a650247865ffd461ece479f8b404f1bee (diff)
LinGui:
poll for dvd volume labels after the ui is fully displayed truncate leading and trailing spaces in volume labels sanitize volume label after making a copy instead of stepping on dvdreads private copy. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2370 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'gtk/src/hb-backend.c')
-rw-r--r--gtk/src/hb-backend.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/gtk/src/hb-backend.c b/gtk/src/hb-backend.c
index 10a563074..05a0aeaa4 100644
--- a/gtk/src/hb-backend.c
+++ b/gtk/src/hb-backend.c
@@ -4138,10 +4138,11 @@ ghb_dvd_volname(const gchar *device)
{
gchar *name;
name = hb_dvd_name((gchar*)device);
- if (name != NULL)
+ if (name != NULL && name[0] != 0)
{
+ name = g_strdup(name);
sanitize_volname(name);
- return g_strdup(name);
+ return name;
}
- return name;
+ return NULL;
}