diff --git a/services/engine/histreamer/player/hiplayer_impl.cpp b/services/engine/histreamer/player/hiplayer_impl.cpp index 567e9451719dfe541024c947869ccb0dc2dfb883..69fe2f2abe0cba130b6181ce7ac8ba19bd7a8976 100755 --- a/services/engine/histreamer/player/hiplayer_impl.cpp +++ b/services/engine/histreamer/player/hiplayer_impl.cpp @@ -1195,9 +1195,9 @@ int32_t HiPlayerImpl::GetVideoTrackInfo(std::vector& videoTrack) Plugins::VideoRotation rotation; trackInfo->Get(rotation); videoTrackInfo.PutIntValue(Tag::VIDEO_ROTATION, rotation); - bool hdr; - trackInfo->GetData(Tag::VIDEO_IS_HDR_VIVID, hdr); - if (hdr) { + bool isHdr = false; + trackInfo->GetData(Tag::VIDEO_IS_HDR_VIVID, isHdr); + if (isHdr) { playStatisticalInfo_.hdrType = static_cast(VideoHdrType::VIDEO_HDR_TYPE_VIVID); } else { playStatisticalInfo_.hdrType = static_cast(VideoHdrType::VIDEO_HDR_TYPE_NONE);