mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-10 10:18:38 +09:00
[DOM] Clone video info properly.
This commit is contained in:
parent
a09accc204
commit
a2417d573b
1 changed files with 14 additions and 2 deletions
|
|
@ -210,13 +210,25 @@ public:
|
|||
, mDisplay(aOther.mDisplay)
|
||||
, mStereoMode(aOther.mStereoMode)
|
||||
, mImage(aOther.mImage)
|
||||
, mCodecSpecificConfig(aOther.mCodecSpecificConfig)
|
||||
, mExtraData(aOther.mExtraData)
|
||||
, mCodecSpecificConfig(nullptr)
|
||||
, mExtraData(nullptr)
|
||||
, mRotation(aOther.mRotation)
|
||||
, mBitDepth(aOther.mBitDepth)
|
||||
, mImageRect(aOther.mImageRect)
|
||||
, mAlphaPresent(aOther.mAlphaPresent)
|
||||
{
|
||||
if (aOther.mCodecSpecificConfig) {
|
||||
mCodecSpecificConfig = new MediaByteBuffer();
|
||||
mCodecSpecificConfig->AppendElements(
|
||||
reinterpret_cast<uint8_t*>(aOther.mCodecSpecificConfig->Elements()),
|
||||
aOther.mCodecSpecificConfig->Length());
|
||||
}
|
||||
if (aOther.mExtraData) {
|
||||
mExtraData = new MediaByteBuffer();
|
||||
mExtraData->AppendElements(
|
||||
reinterpret_cast<uint8_t*>(aOther.mExtraData->Elements()),
|
||||
aOther.mExtraData->Length());
|
||||
}
|
||||
}
|
||||
|
||||
bool IsValid() const override
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue