mirror of
https://code.videolan.org/videolan/vlc
synced 2024-09-04 09:11:33 +02:00
decklink: fix uninitialized on error path
This commit is contained in:
parent
9d9f6e02ec
commit
fce89194ac
@ -289,6 +289,8 @@ static int Open( vlc_object_t *p_this )
|
||||
|
||||
vlc_mutex_init( &p_sys->pts_lock );
|
||||
|
||||
IDeckLinkDisplayModeIterator *p_display_iterator = NULL;
|
||||
|
||||
IDeckLinkIterator *decklink_iterator = CreateDeckLinkIteratorInstance();
|
||||
if( !decklink_iterator )
|
||||
{
|
||||
@ -404,7 +406,6 @@ static int Open( vlc_object_t *p_this )
|
||||
}
|
||||
|
||||
/* Get the list of display modes. */
|
||||
IDeckLinkDisplayModeIterator *p_display_iterator;
|
||||
result = p_sys->p_input->GetDisplayModeIterator( &p_display_iterator );
|
||||
if( result != S_OK )
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user