dshowsrcwrapper: fix regression on device selection
Do not take device_name if a device has been specified. Do not take device_index into account if a device or a device name has been specified.
This commit is contained in:
parent
2b478d3423
commit
c5738c6125
@ -443,10 +443,10 @@ gst_dshow_select_device (const GUID * device_category,
|
||||
if (device && g_strcmp0 (device, entry->device) == 0) {
|
||||
selected = entry;
|
||||
break;
|
||||
} else if (device_name && g_strcmp0 (device_name, entry->device_name) == 0) {
|
||||
} else if (!device && device_name && g_strcmp0 (device_name, entry->device_name) == 0) {
|
||||
selected = entry;
|
||||
break;
|
||||
} else if (device_index == entry->device_index) {
|
||||
} else if (!device && !deviceName && device_index == entry->device_index) {
|
||||
selected = entry;
|
||||
break;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user