Commit c5738c61 authored by Gauthier Lamaison's avatar Gauthier Lamaison Committed by Tim-Philipp Müller

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.
parent 2b478d34
Pipeline #58297 failed with stages
in 29 minutes and 53 seconds
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment