Mercurial > mplayer.hg
changeset 10776:80402283a017
Fix immediatemode with mplayer (ie playing both sound and video)
author | albeu |
---|---|
date | Mon, 01 Sep 2003 12:10:29 +0000 |
parents | a2029c40a65c |
children | 8313be76ae69 |
files | libmpdemux/tvi_v4l.c libmpdemux/tvi_v4l2.c |
diffstat | 2 files changed, 10 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpdemux/tvi_v4l.c Mon Sep 01 10:51:11 2003 +0000 +++ b/libmpdemux/tvi_v4l.c Mon Sep 01 12:10:29 2003 +0000 @@ -1728,6 +1728,11 @@ 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--;
--- a/libmpdemux/tvi_v4l2.c Mon Sep 01 10:51:11 2003 +0000 +++ b/libmpdemux/tvi_v4l2.c Mon Sep 01 12:10:29 2003 +0000 @@ -1627,6 +1627,11 @@ 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--;