| 247 | } |
| 248 | |
| 249 | void decoderVVDec::resetDecoder() |
| 250 | { |
| 251 | if (this->decoder != nullptr) |
| 252 | if (this->lib.vvdec_decoder_close(decoder) != VVDEC_OK) |
| 253 | return setError("Reset: Freeing the decoder failed."); |
| 254 | |
| 255 | decoderBase::resetDecoder(); |
| 256 | this->decoder = nullptr; |
| 257 | |
| 258 | this->allocateNewDecoder(); |
| 259 | } |
| 260 | |
| 261 | void decoderVVDec::allocateNewDecoder() |
| 262 | { |
nothing calls this directly
no test coverage detected