mirror of https://github.com/mpv-player/mpv
Fix immediatemode with mplayer (ie playing both sound and video)
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10777 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
4102058367
commit
a695d492af
|
@ -1728,6 +1728,11 @@ static double grab_audio_frame(priv_t *priv, char *buffer, int len)
|
|||
mp_dbg(MSGT_TV, MSGL_DBG2, "grab_audio_frame(priv=%p, buffer=%p, len=%d)\n",
|
||||
priv, buffer, len);
|
||||
|
||||
if (priv->first) {
|
||||
pthread_create(&priv->video_grabber_thread, NULL, video_grabber, priv);
|
||||
priv->first = 0;
|
||||
}
|
||||
|
||||
// compensate for dropped audio frames
|
||||
if (priv->audio_drop && (priv->audio_head == priv->audio_tail)) {
|
||||
priv->audio_drop--;
|
||||
|
|
|
@ -1627,6 +1627,11 @@ static double grab_audio_frame(priv_t *priv, char *buffer, int len)
|
|||
mp_dbg(MSGT_TV, MSGL_DBG2, "grab_audio_frame(priv=%p, buffer=%p, len=%d)\n",
|
||||
priv, buffer, len);
|
||||
|
||||
if (priv->first) {
|
||||
pthread_create(&priv->video_grabber_thread, NULL, video_grabber, priv);
|
||||
priv->first = 0;
|
||||
}
|
||||
|
||||
// compensate for dropped audio frames
|
||||
if (priv->audio_drop && (priv->audio_head == priv->audio_tail)) {
|
||||
priv->audio_drop--;
|
||||
|
|
Loading…
Reference in New Issue