Skip to content

Commit eb83793

Browse files
committed
AvOutputStream: remove unnecessary functions
* Default copy constructor: automatically generated. * getVideoCodec / getAudioCodec: not working, and nowhere used. Also remove them in the abstract based class.
1 parent 89045a0 commit eb83793

File tree

3 files changed

+1
-28
lines changed

3 files changed

+1
-28
lines changed

src/AvTranscoder/codedStream/AvOutputStream.cpp

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,4 @@ bool AvOutputStream::wrap( CodedData& data )
2525
return _outputFile->wrap( data, _streamIndex );
2626
}
2727

28-
VideoCodec AvOutputStream::getVideoCodec() const
29-
{
30-
return _videoDesc;
31-
}
32-
33-
AudioCodec AvOutputStream::getAudioCodec() const
34-
{
35-
return _audioDesc;
36-
}
37-
3828
}

src/AvTranscoder/codedStream/AvOutputStream.hpp

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -12,29 +12,16 @@ class AvExport AvOutputStream : public IOutputStream
1212
{
1313
public:
1414
AvOutputStream( OutputFile& outputFile, const size_t streamIndex );
15-
~AvOutputStream( );
1615

17-
AvOutputStream( const AvOutputStream& outputStream )
18-
: IOutputStream( )
19-
, _outputFile( outputStream._outputFile )
20-
, _streamIndex( outputStream._streamIndex )
21-
{
22-
}
16+
~AvOutputStream( );
2317

2418
size_t getStreamIndex() const { return _streamIndex; }
2519

2620
bool wrap( CodedData& data );
2721

28-
// Stream propeerties
29-
VideoCodec getVideoCodec() const;
30-
AudioCodec getAudioCodec() const;
31-
3222
private:
3323
OutputFile* _outputFile;
3424

35-
VideoCodec _videoDesc;
36-
AudioCodec _audioDesc;
37-
3825
size_t _streamIndex;
3926
};
4027

src/AvTranscoder/codedStream/IOutputStream.hpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,6 @@ class IOutputStream
1616
virtual size_t getStreamIndex() const = 0;
1717

1818
virtual bool wrap( CodedData& data ) = 0;
19-
20-
// Stream properties
21-
virtual VideoCodec getVideoCodec() const = 0;
22-
virtual AudioCodec getAudioCodec() const = 0;
2319
};
2420

2521
}

0 commit comments

Comments
 (0)