From 96a45a16af5594900ca94e7d4abb18d1e6d5ed4a Mon Sep 17 00:00:00 2001 From: wm4 Date: Tue, 7 Feb 2017 17:05:17 +0100 Subject: player: add experimental stream recording feature This is basically a WIP, but it can't remain in a branch forever. A warning is print when using it as it's still a bit "shaky". --- player/playloop.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'player/playloop.c') diff --git a/player/playloop.c b/player/playloop.c index 232a75f814..e73ad61788 100644 --- a/player/playloop.c +++ b/player/playloop.c @@ -28,6 +28,7 @@ #include "options/options.h" #include "common/common.h" #include "common/encode.h" +#include "common/recorder.h" #include "options/m_config.h" #include "options/m_property.h" #include "common/playlist.h" @@ -330,6 +331,8 @@ static void mp_seek(MPContext *mpctx, struct seek_params seek) clear_audio_output_buffers(mpctx); reset_playback_state(mpctx); + if (mpctx->recorder) + mp_recorder_mark_discontinuity(mpctx->recorder); /* Use the target time as "current position" for further relative * seeks etc until a new video frame has been decoded */ -- cgit v1.2.3