[vlc-commits] commit: decklink: fix uninitialized on error path ( =?UTF-8?Q?R=C3=A9mi=20Denis=2DCourmont=20?=)
git at videolan.org
git at videolan.org
Tue Nov 30 18:52:01 CET 2010
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Nov 30 19:51:19 2010 +0200| [fce89194ac6f9d48bcaa8ff65eb0d8db9dabbe47] | committer: Rémi Denis-Courmont
decklink: fix uninitialized on error path
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=fce89194ac6f9d48bcaa8ff65eb0d8db9dabbe47
---
modules/access/decklink.cpp | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/modules/access/decklink.cpp b/modules/access/decklink.cpp
index 5018efe..bacbb76 100644
--- a/modules/access/decklink.cpp
+++ b/modules/access/decklink.cpp
@@ -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 )
{
More information about the vlc-commits
mailing list