Skip to content

Commit 33253f7

Browse files
committed
EWrappingStatus: introduce new eWrappingSkip possible value
1 parent 8cc0912 commit 33253f7

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/AvTranscoder/file/OutputFile.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ bool OutputFile::beginWrap()
188188
IOutputStream::EWrappingStatus OutputFile::wrap(const CodedData& data, const size_t streamIndex)
189189
{
190190
if(!data.getSize())
191-
return IOutputStream::eWrappingSuccess;
191+
return IOutputStream::eWrappingSkip;
192192

193193
LOG_DEBUG("Wrap on stream " << streamIndex << " (" << data.getSize() << " bytes for frame "
194194
<< _frameCount.at(streamIndex) << ")")

src/AvTranscoder/stream/IOutputStream.hpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,10 @@ class AvExport IOutputStream
1616
**/
1717
enum EWrappingStatus
1818
{
19-
eWrappingSuccess = 0,
20-
eWrappingWaitingForData,
21-
eWrappingError,
19+
eWrappingSuccess = 0, ///< The wrapping succeeded
20+
eWrappingWaitingForData, ///< The wrapper expects more data to complete the writing process
21+
eWrappingSkip, ///< The wrapper receives empty data, so nothing is written
22+
eWrappingError, ///< An error occurred during the wrapping process
2223
};
2324

2425
virtual ~IOutputStream(){};

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy