[FFmpeg-cvslog] lavd/alsa-audio-common: mark default device in device list
Lukasz Marek
git at videolan.org
Sun Dec 14 23:58:48 CET 2014
ffmpeg | branch: master | Lukasz Marek <lukasz.m.luki2 at gmail.com> | Sat Dec 13 19:46:15 2014 +0100| [b3311f3cc9ffaaf7dd7806bf46a056a43c8b9371] | committer: Lukasz Marek
lavd/alsa-audio-common: mark default device in device list
Signed-off-by: Lukasz Marek <lukasz.m.luki2 at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=b3311f3cc9ffaaf7dd7806bf46a056a43c8b9371
---
libavdevice/alsa-audio-common.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/libavdevice/alsa-audio-common.c b/libavdevice/alsa-audio-common.c
index 749897f..b7f5313 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:
More information about the ffmpeg-cvslog
mailing list