summaryrefslogtreecommitdiffstats
path: root/libhb/scan.c
diff options
context:
space:
mode:
Diffstat (limited to 'libhb/scan.c')
-rw-r--r--libhb/scan.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/libhb/scan.c b/libhb/scan.c
index b747c7239..3a19d9e19 100644
--- a/libhb/scan.c
+++ b/libhb/scan.c
@@ -288,6 +288,15 @@ static void ScanFunc( void * _data )
title = hb_list_item( data->title_set->list_title, i );
title->flags |= HBTF_SCAN_COMPLETE;
}
+ if (hb_list_count(data->title_set->list_title) > 0)
+ {
+ strncpy(data->title_set->path, data->path, 1024);
+ data->title_set->path[1023] = 0;
+ }
+ else
+ {
+ data->title_set->path[0] = 0;
+ }
finish: