Skip to content

Commit ced6585

Browse files
author
Clement Champetier
committed
FileProperties: updated access to the format context
Define only const methods.
1 parent 7980a30 commit ced6585

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/AvTranscoder/properties/FileProperties.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ class AvExport FileProperties
6161
size_t getNbAttachementStreams() const { return _attachementStreams.size(); }
6262
size_t getNbUnknownStreams() const { return _unknownStreams.size(); }
6363

64-
const FormatContext& getFormatContext() { return *_formatContext; }
64+
const FormatContext& getFormatContext() const { return *_formatContext; }
6565

6666
//@{
6767
// @brief Get the properties at the indicated stream index
@@ -81,7 +81,7 @@ class AvExport FileProperties
8181
//@}
8282

8383
#ifndef SWIG
84-
const AVFormatContext& getAVFormatContext() { return *_avFormatContext; }
84+
const AVFormatContext& getAVFormatContext() const { return *_avFormatContext; }
8585
#endif
8686

8787
std::string allPropertiesAsJson() const; ///< Return all properties as a json format.

0 commit comments

Comments
 (0)