added == operator to compare with GeneralMediaFormat
This commit is contained in:
parent
56d13d326d
commit
9016097d36
|
@ -258,6 +258,7 @@ public:
|
|||
const char *extensionName() const;
|
||||
operator bool() const;
|
||||
MediaFormat &operator+=(const MediaFormat &other);
|
||||
bool operator==(GeneralMediaFormat general) const;
|
||||
|
||||
GeneralMediaFormat general;
|
||||
unsigned char sub;
|
||||
|
@ -290,6 +291,14 @@ inline MediaFormat &MediaFormat::operator+=(const MediaFormat &other)
|
|||
return *this;
|
||||
}
|
||||
|
||||
/*!
|
||||
* \brief Returns whether the media format is the specified general media format.
|
||||
*/
|
||||
inline bool MediaFormat::operator==(GeneralMediaFormat general) const
|
||||
{
|
||||
return this->general == general;
|
||||
}
|
||||
|
||||
/*!
|
||||
* \brief Returns whether the media format is known.
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue