});
}
+DeckLinkOutput::~DeckLinkOutput()
+{
+ if (output != nullptr) {
+ output->Release();
+ }
+}
+
bool DeckLinkOutput::set_device(IDeckLink *decklink, IDeckLinkInput *input_arg)
{
input = input_arg;
frame_freelist.pop();
}
}
-
- if (input != nullptr) {
- input->Release();
- input = nullptr;
- }
- if (output != nullptr) {
- output->Release();
- output = nullptr;
- }
}
void DeckLinkOutput::send_frame(GLuint y_tex, GLuint cbcr_tex, YCbCrLumaCoefficients output_ycbcr_coefficients, const vector<RefCountedFrame> &input_frames, int64_t pts, int64_t duration)