mirror of
https://github.com/mpv-player/mpv
synced 2025-04-08 10:32:51 +00:00
removed unused controls
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6195 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
7b6fd7077b
commit
5baeafa938
@ -175,23 +175,6 @@ spdif_init(int acard, int adevice)
|
||||
/* to set/get/query special features/parameters */
|
||||
static int control(int cmd, int arg)
|
||||
{
|
||||
switch(cmd)
|
||||
{
|
||||
case AOCONTROL_GET_DEVICE:
|
||||
return((char *)alsa_device); /* egy kicsit brutalis, dehat :) */
|
||||
case AOCONTROL_SET_DEVICE:
|
||||
{
|
||||
int ret;
|
||||
|
||||
strncpy(alsa_device, (char *)arg, ALSA_DEVICE_SIZE);
|
||||
uninit();
|
||||
ret = init(ao_data.samplerate, ao_data.channels, ao_data.format, 0);
|
||||
if (ret == 0)
|
||||
return(CONTROL_ERROR);
|
||||
else
|
||||
return(CONTROL_OK);
|
||||
}
|
||||
}
|
||||
return(CONTROL_UNKNOWN);
|
||||
}
|
||||
|
||||
|
@ -175,23 +175,6 @@ spdif_init(int acard, int adevice)
|
||||
/* to set/get/query special features/parameters */
|
||||
static int control(int cmd, int arg)
|
||||
{
|
||||
switch(cmd)
|
||||
{
|
||||
case AOCONTROL_GET_DEVICE:
|
||||
return((char *)alsa_device); /* egy kicsit brutalis, dehat :) */
|
||||
case AOCONTROL_SET_DEVICE:
|
||||
{
|
||||
int ret;
|
||||
|
||||
strncpy(alsa_device, (char *)arg, ALSA_DEVICE_SIZE);
|
||||
uninit();
|
||||
ret = init(ao_data.samplerate, ao_data.channels, ao_data.format, 0);
|
||||
if (ret == 0)
|
||||
return(CONTROL_ERROR);
|
||||
else
|
||||
return(CONTROL_OK);
|
||||
}
|
||||
}
|
||||
return(CONTROL_UNKNOWN);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user