mirror of
https://github.com/mpv-player/mpv
synced 2024-12-23 23:32:26 +00:00
ao_subdevice support added
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1208 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
517707c56b
commit
d39f5c5962
@ -155,6 +155,9 @@ static int init(int rate_hz, int channels, int format, int flags)
|
||||
return(0);
|
||||
}
|
||||
|
||||
if (ao_subdevice != NULL)
|
||||
alsa_device = ao_subdevice;
|
||||
|
||||
if (alsa_device == NULL)
|
||||
{
|
||||
if ((alsa_device = malloc(ALSA_DEVICE_SIZE)) == NULL)
|
||||
|
@ -155,6 +155,9 @@ static int init(int rate_hz, int channels, int format, int flags)
|
||||
return(0);
|
||||
}
|
||||
|
||||
if (ao_subdevice != NULL)
|
||||
alsa_device = ao_subdevice;
|
||||
|
||||
if (alsa_device == NULL)
|
||||
{
|
||||
if ((alsa_device = malloc(ALSA_DEVICE_SIZE)) == NULL)
|
||||
|
Loading…
Reference in New Issue
Block a user