MythTV  master
filewriterbase.cpp
Go to the documentation of this file.
1 /* -*- Mode: c++ -*-
2  *
3  * Class FileWriterBase
4  *
5  * Copyright (C) Chris Pinkham 2011
6  *
7  * This program is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation; either version 2 of the License, or
10  * (at your option) any later version.
11  *
12  * This program is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with this program; if not, write to the Free Software
19  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20  */
21 
22 #include "mythlogging.h"
23 #include "filewriterbase.h"
24 
25 #define LOC QString("FWB(%1): ").arg(m_filename)
26 #define LOC_ERR QString("FWB(%1) Error: ").arg(m_filename)
27 
29 {
30  LOG(VB_RECORD, LOG_ERR, LOC + "WriteVideoFrame(): Shouldn't be here!");
31 
32  return 1;
33 }
34 
35 int FileWriterBase::WriteAudioFrame(unsigned char */*buf*/, int /*fnum*/, long long &/*timecode*/)
36 {
37  LOG(VB_RECORD, LOG_ERR, LOC + "WriteAudioFrame(): Shouldn't be here!");
38 
39  return 1;
40 }
41 
42 /* vim: set expandtab tabstop=4 shiftwidth=4: */
virtual int WriteVideoFrame(VideoFrame *frame)
virtual int WriteAudioFrame(unsigned char *buf, int fnum, long long &timecode)
#define LOC
#define LOG(_MASK_, _LEVEL_, _STRING_)
Definition: mythlogging.h:41