diff options
author | Lukasz Marek <lukasz.m.luki2@gmail.com> | 2014-12-13 19:46:15 +0100 |
---|---|---|
committer | Lukasz Marek <lukasz.m.luki2@gmail.com> | 2014-12-14 23:55:41 +0100 |
commit | b3311f3cc9ffaaf7dd7806bf46a056a43c8b9371 (patch) | |
tree | 2ebc73d4778b58249d60b75477592dbdbb884d2e | |
parent | 279412c83340584a32f08a4afa0f81fb50061853 (diff) | |
download | ffmpeg-b3311f3cc9ffaaf7dd7806bf46a056a43c8b9371.tar.gz |
lavd/alsa-audio-common: mark default device in device list
Signed-off-by: Lukasz Marek <lukasz.m.luki2@gmail.com>
-rw-r--r-- | libavdevice/alsa-audio-common.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavdevice/alsa-audio-common.c b/libavdevice/alsa-audio-common.c index 749897fe95..b7f53137d7 100644 --- a/libavdevice/alsa-audio-common.c +++ b/libavdevice/alsa-audio-common.c @@ -379,6 +379,8 @@ int ff_alsa_get_device_list(AVDeviceInfoList *device_list, snd_pcm_stream_t stre &device_list->nb_devices, new_device)) < 0) { goto fail; } + if (!strcmp(new_device->device_name, "default")) + device_list->default_device = device_list->nb_devices - 1; new_device = NULL; } fail: |