summaryrefslogtreecommitdiffstats
path: root/libhb/stream.c
diff options
context:
space:
mode:
Diffstat (limited to 'libhb/stream.c')
-rw-r--r--libhb/stream.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libhb/stream.c b/libhb/stream.c
index 43f155fd4..a48d339f1 100644
--- a/libhb/stream.c
+++ b/libhb/stream.c
@@ -1042,7 +1042,7 @@ hb_title_t * hb_stream_title_scan(hb_stream_t *stream, hb_title_t * title)
title->index = 1;
// Copy part of the stream path to the title name
- char *sep = strrchr(stream->path, '/');
+ char *sep = hb_strr_dir_sep(stream->path);
if (sep)
strcpy(title->name, sep+1);
char *dot_term = strrchr(title->name, '.');
@@ -5361,7 +5361,7 @@ static hb_title_t *ffmpeg_title_scan( hb_stream_t *stream, hb_title_t *title )
title->index = 1;
// Copy part of the stream path to the title name
- char *sep = strrchr(stream->path, '/');
+ char *sep = hb_strr_dir_sep(stream->path);
if (sep)
strcpy(title->name, sep+1);
char *dot_term = strrchr(title->name, '.');