Fixed Source creation with new Active mechanism.

This commit is contained in:
brunoherbelin
2020-06-22 18:15:25 +02:00
parent 8684d6f2c2
commit 4df2063a47
6 changed files with 14 additions and 17 deletions

View File

@@ -274,6 +274,9 @@ GstClockTime MediaPlayer::position()
void MediaPlayer::enable(bool on)
{
if ( !ready_ )
return;
if ( enabled_ != on ) {
enabled_ = on;