summaryrefslogtreecommitdiffstats
path: root/player/timeline/tl_mpv_edl.c
diff options
context:
space:
mode:
Diffstat (limited to 'player/timeline/tl_mpv_edl.c')
-rw-r--r--player/timeline/tl_mpv_edl.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/player/timeline/tl_mpv_edl.c b/player/timeline/tl_mpv_edl.c
index 95bb03e2d8..651c937c23 100644
--- a/player/timeline/tl_mpv_edl.c
+++ b/player/timeline/tl_mpv_edl.c
@@ -123,17 +123,17 @@ static struct demuxer *open_file(char *filename, struct MPContext *mpctx)
{
struct MPOpts *opts = mpctx->opts;
struct demuxer *d = NULL;
- struct stream *s = stream_open(filename, opts);
+ struct stream *s = stream_open(filename, mpctx->global);
if (s) {
stream_enable_cache_percent(&s,
opts->stream_cache_size,
opts->stream_cache_def_size,
opts->stream_cache_min_percent,
opts->stream_cache_seek_min_percent);
- d = demux_open(s, NULL, NULL, opts);
+ d = demux_open(s, NULL, NULL, mpctx->global);
}
if (!d) {
- mp_msg(MSGT_CPLAYER, MSGL_ERR, "EDL: Could not open source file '%s'.\n",
+ MP_ERR(mpctx, "EDL: Could not open source file '%s'.\n",
filename);
free_stream(s);
}
@@ -197,8 +197,7 @@ static void build_timeline(struct MPContext *mpctx, struct tl_parts *parts)
double len = source_get_length(source);
if (len <= 0) {
- mp_msg(MSGT_CPLAYER, MSGL_WARN,
- "EDL: source file '%s' has unknown duration.\n",
+ MP_WARN(mpctx, "EDL: source file '%s' has unknown duration.\n",
part->filename);
}
@@ -210,7 +209,7 @@ static void build_timeline(struct MPContext *mpctx, struct tl_parts *parts)
if (len > 0) {
double partlen = part->offset + part->length;
if (partlen > len) {
- mp_msg(MSGT_CPLAYER, MSGL_WARN, "EDL: entry %d uses %f "
+ MP_WARN(mpctx, "EDL: entry %d uses %f "
"seconds, but file has only %f seconds.\n",
n, partlen, len);
}
@@ -263,7 +262,7 @@ void build_mpv_edl_timeline(struct MPContext *mpctx)
{
struct tl_parts *parts = parse_edl(mpctx->demuxer->file_contents);
if (!parts) {
- mp_msg(MSGT_CPLAYER, MSGL_ERR, "Error in EDL.\n");
+ MP_ERR(mpctx, "Error in EDL.\n");
return;
}
// Source is .edl and not edl:// => don't allow arbitrary paths