Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Steve Lhomme
VLC
Commits
004a16fb
Commit
004a16fb
authored
Jun 21, 2009
by
ivoire
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Factorize.
parent
c5af2987
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
+3
-6
modules/access/dshow/dshow.cpp
modules/access/dshow/dshow.cpp
+3
-6
No files found.
modules/access/dshow/dshow.cpp
View file @
004a16fb
...
...
@@ -2003,6 +2003,7 @@ static int ConfigDevicesCallback( vlc_object_t *p_this, char const *psz_name,
module_config_t
*
p_item
;
bool
b_audio
=
false
;
char
*
psz_device
=
NULL
;
int
i_ret
=
VLC_SUCCESS
;
if
(
!
EMPTY_STR
(
newval
.
psz_string
)
)
psz_device
=
strdup
(
newval
.
psz_string
);
...
...
@@ -2046,19 +2047,15 @@ static int ConfigDevicesCallback( vlc_object_t *p_this, char const *psz_name,
}
else
{
/* Uninitialize OLE/COM */
CoUninitialize
();
msg_Err
(
p_this
,
"didn't find device: %s"
,
devicename
.
c_str
()
);
free
(
psz_device
);
return
VLC_EGENERIC
;
i_ret
=
VLC_EGENERIC
;
}
/* Uninitialize OLE/COM */
CoUninitialize
();
free
(
psz_device
);
return
VLC_SUCCESS
;
return
i_ret
;
}
/*****************************************************************************
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment