summaryrefslogtreecommitdiffstats
path: root/gtk/src/hb-backend.c
diff options
context:
space:
mode:
Diffstat (limited to 'gtk/src/hb-backend.c')
-rw-r--r--gtk/src/hb-backend.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/gtk/src/hb-backend.c b/gtk/src/hb-backend.c
index 3143eb8c4..9208db5a7 100644
--- a/gtk/src/hb-backend.c
+++ b/gtk/src/hb-backend.c
@@ -2081,6 +2081,26 @@ ghb_create_source_label(const hb_title_t * title)
}
gchar*
+ghb_create_volume_label(const hb_title_t * title)
+{
+ char * volname;
+
+ if (title != NULL && title->name != NULL && title->name[0] != 0)
+ {
+ volname = strdup(title->name);
+ if (title->type == HB_DVD_TYPE)
+ {
+ ghb_sanitize_volname(volname);
+ }
+ }
+ else
+ {
+ volname = g_strdup(_("No Title Found"));
+ }
+ return volname;
+}
+
+gchar*
ghb_create_title_label(const hb_title_t *title)
{
gchar *label;