[Problem]
When play() is issued by an app during prepare another prepare is started leading to decoder mismatch between esplusplayer and hardware resource helper.
[Solution]
Do not prepare in play() if a prepare is already ongoing.
Bug: https://jira-eu.sec.samsung.net/browse/VDWASM-1627
Change-Id: Ib8088f171dd426047222bc83dc47ec72e2313ad4
Signed-off-by: Jan Prusakowski <jan.prus@samsung.com>
auto td_ptr = suitable_decoder_.lock();
if (td_ptr) {
- if (blink::IsHbbTV() /* && decoder_conflict_ */ && !IsPrepared()) {
+ if (blink::IsHbbTV() && CanPrepare()) {
DemuxerStream* stream = GetDemuxerStream(media::DemuxerStream::VIDEO);
if (stream) {
VideoDecoderConfig video_config = stream->video_decoder_config();