[MPlayer-dev-eng] [PATCH] v4l1 bugfix for hang on close
Krister Lagerstrom
krister at kmlager.com
Tue Oct 22 04:50:54 CEST 2002
The CVS update on oct 19 for libmpdemux/tvi_v4l.c broke TV viewing. It
now hangs on close. The included patch is a very simple fix for the
problem.
The source contains a mix of tabs and spaces, so my patch has only
spaces for indentation.
The patch was made using:
"cvs diff -u libmpdemux/ > patch_v4l1_fix_hang_on_close"
using a 10 second old cvs update.
/ Krister
-------------- next part --------------
Index: libmpdemux/tvi_v4l.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/tvi_v4l.c,v
retrieving revision 1.33
diff -u -u -r1.33 tvi_v4l.c
--- libmpdemux/tvi_v4l.c 19 Oct 2002 20:03:40 -0000 1.33
+++ libmpdemux/tvi_v4l.c 22 Oct 2002 03:20:21 -0000
@@ -1190,6 +1190,11 @@
if (priv->immediate_mode) {
while ((priv->video_tail+1) % priv->video_buffer_size == priv->video_head) {
usleep(10000);
+
+ if (priv->shutdown) {
+ return NULL;
+ }
+
}
}
More information about the MPlayer-dev-eng
mailing list