From 854c698a527abe0aa5151849b987f74504afe6be Mon Sep 17 00:00:00 2001 From: Barrett17 Date: Wed, 21 Nov 2018 17:23:58 +0100 Subject: [PATCH] ffmpeg: Move AVCodecWriter to BMetaData --- src/add-ons/media/plugins/ffmpeg/AVFormatWriter.cpp | 6 +++--- src/add-ons/media/plugins/ffmpeg/AVFormatWriter.h | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/add-ons/media/plugins/ffmpeg/AVFormatWriter.cpp b/src/add-ons/media/plugins/ffmpeg/AVFormatWriter.cpp index 59153ce65a..3a6f57c3c8 100644 --- a/src/add-ons/media/plugins/ffmpeg/AVFormatWriter.cpp +++ b/src/add-ons/media/plugins/ffmpeg/AVFormatWriter.cpp @@ -425,7 +425,7 @@ AVFormatWriter::Init(const media_file_format* fileFormat) status_t -AVFormatWriter::SetCopyright(const char* copyright) +AVFormatWriter::SetMetaData(BMetaData* data) { TRACE("AVFormatWriter::SetCopyright(%s)\n", copyright); @@ -541,9 +541,9 @@ AVFormatWriter::FreeCookie(void* _cookie) status_t -AVFormatWriter::SetCopyright(void* cookie, const char* copyright) +AVFormatWriter::SetMetaData(void* cookie, BMetaData* data) { - TRACE("AVFormatWriter::SetCopyright(%p, %s)\n", cookie, copyright); + TRACE("AVFormatWriter::SetMetaData(%p)\n", cookie); return B_NOT_SUPPORTED; } diff --git a/src/add-ons/media/plugins/ffmpeg/AVFormatWriter.h b/src/add-ons/media/plugins/ffmpeg/AVFormatWriter.h index 06ef048661..2a70076abf 100644 --- a/src/add-ons/media/plugins/ffmpeg/AVFormatWriter.h +++ b/src/add-ons/media/plugins/ffmpeg/AVFormatWriter.h @@ -22,7 +22,7 @@ public: virtual status_t Init(const media_file_format* fileFormat); - virtual status_t SetCopyright(const char* copyright); + virtual status_t SetMetaData(BMetaData* data); virtual status_t CommitHeader(); virtual status_t Flush(); virtual status_t Close(); @@ -32,8 +32,8 @@ public: const media_codec_info* codecInfo); virtual status_t FreeCookie(void* cookie); - virtual status_t SetCopyright(void* cookie, - const char* copyright); + virtual status_t SetMetaData(void* cookie, + BMetaData* data); virtual status_t AddTrackInfo(void* cookie, uint32 code, const void* data, size_t size,