Fix #1393 - minor aesthetic change, remove trailing slash from user config DVR directory.

(cherry picked from commit c05f93da53)
This commit is contained in:
Adam Sutton 2012-11-11 20:36:16 +00:00
parent 0e589a3a43
commit 4f9f348503

View file

@ -205,6 +205,11 @@ pvr_generate_filename(dvr_entry_t *de, const streaming_start_t *ss)
snprintf(path, sizeof(path), "%s", cfg->dvr_storage);
/* Remove trailing slash */
if (path[strlen(path)-1] == '/')
path[strlen(path)-1] = '\0';
/* Append per-day directory */
if(cfg->dvr_flags & DVR_DIR_PER_DAY) {