Commit 0403f58f authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

Media: Add hasAudio/Video helper methods

parent 471b91e8
......@@ -152,6 +152,18 @@ Media::input() const
return m_input.get();
}
bool
Media::hasVideoTracks() const
{
return input()->hasVideo();
}
bool
Media::hasAudioTracks() const
{
return input()->hasAudio();
}
QSharedPointer<Media>
Media::fromVariant( const QVariant& v )
{
......
......@@ -91,6 +91,9 @@ public:
Backend::IInput* input();
const Backend::IInput* input() const;
bool hasVideoTracks() const;
bool hasAudioTracks() const;
static QSharedPointer<Media> fromVariant( const QVariant& v );
QSharedPointer<Clip> loadSubclip( const QVariantMap& m );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment