diff options
author | jstebbins <[email protected]> | 2009-05-02 23:58:23 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2009-05-02 23:58:23 +0000 |
commit | 5ba946fe336baba0d53ae1ca61691d43982761c6 (patch) | |
tree | 55fb15037284f5e7536d3cfc3bdb28288b5f42a2 /gtk/src/hb-backend.c | |
parent | 1b8d2b8a650247865ffd461ece479f8b404f1bee (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.c | 7 |
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; } |