Skip to content

Commit 24a375a

Browse files
author
Clement Champetier
committed
mediaProperty: getMetadatas is a const function
1 parent 4866e54 commit 24a375a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/AvTranscoder/mediaProperty/FileProperties.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class AvExport FileProperties
4747
size_t getBitRate() const; ///< total stream bitrate in bit/s, 0 if not available (result of a computation by ffmpeg)
4848
size_t getPacketSize() const;
4949

50-
PropertyVector& getMetadatas() { return _metadatas; }
50+
const PropertyVector& getMetadatas() const { return _metadatas; }
5151

5252
size_t getNbStreams() const;
5353
size_t getNbVideoStreams() const { return _videoStreams.size(); }

src/AvTranscoder/mediaProperty/StreamProperties.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class AvExport StreamProperties
1919
size_t getStreamId() const;
2020
Rational getTimeBase() const;
2121
double getDuration() const; ///< in seconds
22-
PropertyVector& getMetadatas() { return _metadatas; }
22+
const PropertyVector& getMetadatas() const { return _metadatas; }
2323

2424
#ifndef SWIG
2525
const AVFormatContext& getAVFormatContext() { return *_formatContext; }

0 commit comments

Comments
 (0)