decklink: initialize priv to NULL

While the code that creates the object sets priv to some existing
pointer after new, this ensures any future new not doing this will
hit the various priv!=NULL asserts in the code.

Coverity 1139935
This commit is contained in:
Vincent Penquerc'h 2014-04-09 11:43:23 +01:00
parent 744c58d71b
commit c78edf5afc

View file

@ -39,7 +39,7 @@
static BMDTimecodeFormat g_timecodeFormat = (BMDTimecodeFormat) 0; static BMDTimecodeFormat g_timecodeFormat = (BMDTimecodeFormat) 0;
DeckLinkCaptureDelegate::DeckLinkCaptureDelegate ():m_refCount (0) DeckLinkCaptureDelegate::DeckLinkCaptureDelegate ():priv (NULL), m_refCount (0)
{ {
g_mutex_init (&m_mutex); g_mutex_init (&m_mutex);
} }