Bugfix Load mediaplayer with audio

Resolving issue #151
This commit is contained in:
Bruno Herbelin
2024-10-13 20:30:58 +02:00
parent 19e647ae84
commit e6d21518d2

View File

@@ -44,6 +44,9 @@ void MediaSource::setPath(const std::string &p)
{
path_ = p;
// prepare audio flag before openning
mediaplayer_->setAudioEnabled( audio_flags_ & Source::Audio_enabled );
// open gstreamer
mediaplayer_->open(path_);
mediaplayer_->play(true);