diff options
-rw-r--r-- | sys/decklink/gstdecklink.cpp | 3 | ||||
-rw-r--r-- | sys/decklink/gstdecklinkaudiosink.cpp | 2 | ||||
-rw-r--r-- | sys/decklink/gstdecklinkvideosink.cpp | 2 |
3 files changed, 6 insertions, 1 deletions
diff --git a/sys/decklink/gstdecklink.cpp b/sys/decklink/gstdecklink.cpp index 67ec9f6e2..3f3bb08f1 100644 --- a/sys/decklink/gstdecklink.cpp +++ b/sys/decklink/gstdecklink.cpp @@ -405,7 +405,8 @@ private: gint m_refcount; public: GStreamerDecklinkInputCallback (GstDecklinkInput * input) - : IDeckLinkInputCallback () + : IDeckLinkInputCallback (), + m_refcount (1) { m_input = input; g_mutex_init (&m_mutex); 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)); diff --git a/sys/decklink/gstdecklinkvideosink.cpp b/sys/decklink/gstdecklinkvideosink.cpp index 5195b860d..72e3b5add 100644 --- a/sys/decklink/gstdecklinkvideosink.cpp +++ b/sys/decklink/gstdecklinkvideosink.cpp @@ -343,6 +343,8 @@ class GStreamerVideoOutputCallback:public IDeckLinkVideoOutputCallback { public: GStreamerVideoOutputCallback (GstDecklinkVideoSink * sink) + : IDeckLinkVideoOutputCallback (), + m_refcount (1) { m_sink = GST_DECKLINK_VIDEO_SINK_CAST (gst_object_ref (sink)); g_mutex_init (&m_mutex); |