summaryrefslogtreecommitdiffstats
path: root/player/misc.c
diff options
context:
space:
mode:
Diffstat (limited to 'player/misc.c')
-rw-r--r--player/misc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/player/misc.c b/player/misc.c
index ae4550fec5..5a96d6cc25 100644
--- a/player/misc.c
+++ b/player/misc.c
@@ -238,7 +238,9 @@ void error_on_track(struct MPContext *mpctx, struct track *track)
int stream_dump(struct MPContext *mpctx, const char *source_filename)
{
struct MPOpts *opts = mpctx->opts;
- stream_t *stream = stream_open(source_filename, mpctx->global);
+ stream_t *stream = stream_create(source_filename,
+ STREAM_ORIGIN_DIRECT | STREAM_READ,
+ mpctx->playback_abort, mpctx->global);
if (!stream)
return -1;