From b79ece392c14307ee1ebbd8285686d3bdd92b894 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Mon, 12 Jan 2015 15:57:53 +0100 Subject: decklink: Initialize refcount of our C++ classes in the constructor CID 1262288 CID 1262287 CID 1262289 --- sys/decklink/gstdecklinkaudiosink.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'sys/decklink/gstdecklinkaudiosink.cpp') diff --git a/sys/decklink/gstdecklinkaudiosink.cpp b/sys/decklink/gstdecklinkaudiosink.cpp index e8efbae01..46a1973e3 100644 --- a/sys/decklink/gstdecklinkaudiosink.cpp +++ b/sys/decklink/gstdecklinkaudiosink.cpp @@ -140,6 +140,8 @@ class GStreamerAudioOutputCallback:public IDeckLinkAudioOutputCallback { public: GStreamerAudioOutputCallback (GstDecklinkAudioSinkRingBuffer * ringbuffer) + : IDeckLinkAudioOutputCallback (), + m_refcount (1) { m_ringbuffer = GST_DECKLINK_AUDIO_SINK_RING_BUFFER_CAST (gst_object_ref (ringbuffer)); -- cgit v1.2.1