diff options
author | wm4 <wm4@nowhere> | 2017-02-07 17:05:17 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2017-02-07 17:05:17 +0100 |
commit | 96a45a16af5594900ca94e7d4abb18d1e6d5ed4a (patch) | |
tree | d08473b07adfa7963ce6735c72af1e5d220930a9 /audio/decode/dec_audio.c | |
parent | 061b752217d15d41496ca6e4777835fcd945e237 (diff) | |
download | mpv-96a45a16af5594900ca94e7d4abb18d1e6d5ed4a.tar.bz2 mpv-96a45a16af5594900ca94e7d4abb18d1e6d5ed4a.tar.xz |
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".
Diffstat (limited to 'audio/decode/dec_audio.c')
-rw-r--r-- | audio/decode/dec_audio.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/audio/decode/dec_audio.c b/audio/decode/dec_audio.c index 56f0fe59ad..5a2735ef20 100644 --- a/audio/decode/dec_audio.c +++ b/audio/decode/dec_audio.c @@ -27,6 +27,7 @@ #include "common/codecs.h" #include "common/msg.h" +#include "common/recorder.h" #include "misc/bstr.h" #include "stream/stream.h" @@ -218,6 +219,9 @@ void audio_work(struct dec_audio *da) } if (da->ad_driver->send_packet(da, da->packet)) { + if (da->recorder_sink) + mp_recorder_feed_packet(da->recorder_sink, da->packet); + talloc_free(da->packet); da->packet = NULL; } |