]> git.sesse.net Git - nageru/blobdiff - decklink_capture.h
Fix some leaks on DecklinkCapture shutdown.
[nageru] / decklink_capture.h
index 69ab08e3cd48285e399c4a57d0bf5af932060003..f54711674b73757851f14c20c3e5f00fcff8f057 100644 (file)
@@ -17,7 +17,7 @@ class IDeckLinkDisplayMode;
 class DeckLinkCapture : public CaptureInterface, IDeckLinkInputCallback
 {
 public:
-       DeckLinkCapture(IDeckLink *card, int card_index);
+       DeckLinkCapture(IDeckLink *card, int card_index);  // Takes ownership of <card>.
        ~DeckLinkCapture();
 
        // IDeckLinkInputCallback.
@@ -106,6 +106,7 @@ private:
 
        IDeckLinkConfiguration *config = nullptr;
 
+       IDeckLink *card = nullptr;
        IDeckLinkInput *input = nullptr;
        BMDTimeValue frame_duration;
        BMDTimeScale time_scale;