mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 19:51:11 +00:00
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
1 changed files with 2 additions and 2 deletions
|
@ -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…
Reference in a new issue