mirror of
https://github.com/outbackdingo/UltraGrid.git
synced 2026-03-21 12:40:19 +00:00
dshow: fixed CS initialization
This commit is contained in:
@@ -661,6 +661,9 @@ void * vidcap_dshow_init(char *init_fmt, unsigned int flags) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
InitializeConditionVariable(&s->grabWaitCV);
|
||||
InitializeCriticalSection(&s->returnBufferCS);
|
||||
|
||||
if (init_fmt && strcmp(init_fmt, "help") == 0) {
|
||||
show_help(s);
|
||||
cleanup(s);
|
||||
@@ -675,8 +678,6 @@ void * vidcap_dshow_init(char *init_fmt, unsigned int flags) {
|
||||
if (!process_args(s, init_fmt)) goto error;
|
||||
}
|
||||
|
||||
InitializeConditionVariable(&s->grabWaitCV);
|
||||
|
||||
// Select video capture device
|
||||
if (s->deviceNumber != -1) { // Device was specified by number
|
||||
for (int i = 1; i <= s->deviceNumber; i++) {
|
||||
|
||||
Reference in New Issue
Block a user