BugFix Correct detection of single frame media

Was causing a problem for play at loading (not paying before started)
This commit is contained in:
Bruno Herbelin
2023-08-11 18:04:32 +02:00
parent 1413490579
commit 7e791ee5e4

View File

@@ -798,7 +798,9 @@ bool MediaPlayer::isImage() const
bool MediaPlayer::singleFrame() const
{
return timeline_.end() == GST_CLOCK_TIME_NONE;
if (media_.isimage)
return timeline_.end() == GST_CLOCK_TIME_NONE;
return false;
}
std::string MediaPlayer::decoderName()