1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

avdevice/dshow: Fix dshow device name/description

Signed-off-by: Marton Balint <cus@passwd.hu>
This commit is contained in:
Romain Beauxis 2022-03-22 14:39:52 +01:00 committed by Marton Balint
parent 7f534d022e
commit 2a44db59ca

View File

@ -552,8 +552,8 @@ dshow_cycle_devices(AVFormatContext *avctx, ICreateDevEnum *devenum,
if (!device)
goto fail;
device->device_name = av_strdup(friendly_name);
device->device_description = av_strdup(unique_name);
device->device_name = av_strdup(unique_name);
device->device_description = av_strdup(friendly_name);
if (!device->device_name || !device->device_description)
goto fail;