mirror of
https://github.com/mpv-player/mpv
synced 2025-01-07 07:30:09 +00:00
tv audio fixing patch by Paul Ortyl <ortylp at 3miasto.net>
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6530 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
a934705746
commit
da0aacd860
@ -637,6 +637,9 @@ static int control(priv_t *priv, int cmd, void *arg)
|
|||||||
priv->picture.contrast = (int)*(void **)arg;
|
priv->picture.contrast = (int)*(void **)arg;
|
||||||
control(priv, TVI_CONTROL_VID_SET_PICTURE, 0);
|
control(priv, TVI_CONTROL_VID_SET_PICTURE, 0);
|
||||||
return(TVI_CONTROL_TRUE);
|
return(TVI_CONTROL_TRUE);
|
||||||
|
case TVI_CONTROL_VID_GET_FPS:
|
||||||
|
(int)*(void **)arg=priv->fps;
|
||||||
|
return(TVI_CONTROL_TRUE);
|
||||||
|
|
||||||
/* ========== TUNER controls =========== */
|
/* ========== TUNER controls =========== */
|
||||||
case TVI_CONTROL_TUN_GET_FREQ:
|
case TVI_CONTROL_TUN_GET_FREQ:
|
||||||
@ -743,10 +746,9 @@ static int control(priv_t *priv, int cmd, void *arg)
|
|||||||
}
|
}
|
||||||
case TVI_CONTROL_AUD_SET_SAMPLERATE:
|
case TVI_CONTROL_AUD_SET_SAMPLERATE:
|
||||||
{
|
{
|
||||||
priv->audio_samplerate[priv->audio_id] = (int)*(void **)arg;
|
int tmp = priv->audio_samplerate[priv->audio_id] = (int)*(void **)arg;
|
||||||
|
|
||||||
if (ioctl(priv->audio_fd, SNDCTL_DSP_SPEED,
|
if (ioctl(priv->audio_fd, SNDCTL_DSP_SPEED, &tmp) == -1)
|
||||||
&priv->audio_samplerate[priv->audio_id]) == -1)
|
|
||||||
return(TVI_CONTROL_FALSE);
|
return(TVI_CONTROL_FALSE);
|
||||||
priv->audio_samplesize[priv->audio_id] =
|
priv->audio_samplesize[priv->audio_id] =
|
||||||
priv->audio_samplerate[priv->audio_id]/8/priv->fps*
|
priv->audio_samplerate[priv->audio_id]/8/priv->fps*
|
||||||
|
Loading…
Reference in New Issue
Block a user