summaryrefslogtreecommitdiff
path: root/sys/decklink/gstdecklinkaudiosink.cpp
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2015-01-12 15:57:53 +0100
committerSebastian Dröge <sebastian@centricular.com>2015-01-12 15:58:38 +0100
commitb79ece392c14307ee1ebbd8285686d3bdd92b894 (patch)
treeb4e95079be1fc893aab401e798363d92191c7b8d /sys/decklink/gstdecklinkaudiosink.cpp
parent0b3f5dafa6c5a9933d2a43308124e19cd5faa81e (diff)
downloadgstreamer-plugins-bad-b79ece392c14307ee1ebbd8285686d3bdd92b894.tar.gz
decklink: Initialize refcount of our C++ classes in the constructor
CID 1262288 CID 1262287 CID 1262289
Diffstat (limited to 'sys/decklink/gstdecklinkaudiosink.cpp')
-rw-r--r--sys/decklink/gstdecklinkaudiosink.cpp2
1 files changed, 2 insertions, 0 deletions
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));