From 3b5dfe1d80729c750f78748d1178f57b5b696c49 Mon Sep 17 00:00:00 2001 From: martii Date: Thu, 1 May 2014 12:51:41 +0200 Subject: [PATCH] libeplayer3/writer: add fd to writer class Origin commit data ------------------ Branch: master Commit: https://github.com/neutrino-images/ni-libstb-hal/commit/6eea7139a4493b488d2b360e4acf16b01b41a6ce Author: martii Date: 2014-05-01 (Thu, 01 May 2014) ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- libeplayer3/include/writer.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/libeplayer3/include/writer.h b/libeplayer3/include/writer.h index b2d8e72..bd699ff 100644 --- a/libeplayer3/include/writer.h +++ b/libeplayer3/include/writer.h @@ -39,6 +39,8 @@ extern "C" { class Writer { + protected: + int fd; public: static void Register(Writer *w, enum AVCodecID id, video_encoding_t encoding); static void Register(Writer *w, enum AVCodecID id, audio_encoding_t encoding); @@ -46,7 +48,7 @@ class Writer static audio_encoding_t GetAudioEncoding(enum AVCodecID id); static Writer *GetWriter(enum AVCodecID id, enum AVMediaType codec_type); - virtual void Init(void) { } - virtual bool Write(int fd, AVStream *stream, AVPacket *packet, int64_t pts); + virtual void Init(int _fd, AVStream * /*stream*/ ) { fd = _fd; } + virtual bool Write(AVPacket *packet, int64_t pts); }; #endif