moved decoders to shared ptrs

This commit is contained in:
itsmattkc
2019-08-09 07:46:53 +10:00
parent 6833b18829
commit 7a858aeca3
4 changed files with 27 additions and 46 deletions
+1 -1
View File
@@ -64,7 +64,6 @@ QString MediaInput::Description()
void MediaInput::Release()
{
delete decoder_;
decoder_ = nullptr;
}
@@ -93,6 +92,7 @@ void MediaInput::Process(const rational &time)
// Determine which decoder to use
if (decoder_ == nullptr
&& (decoder_ = Decoder::CreateFromID(footage->decoder())) == nullptr) {
return;
}
if (decoder_->stream() == nullptr) {
+1 -1
View File
@@ -63,7 +63,7 @@ private:
TextureBuffer tex_buf_;
// END TEST CODE
Decoder* decoder_;
DecoderPtr decoder_;
};