[Mplayer-cvslog] CVS: main/libmpdemux tv.c,1.20,1.21
pl
pl at mplayer.dev.hu
Tue Dec 25 12:45:07 CET 2001
Update of /cvsroot/mplayer/main/libmpdemux
In directory mplayer:/var/tmp.root/cvs-serv19353/libmpdemux
Modified Files:
tv.c
Log Message:
As nobody fixed this yet:
"tv.c: In function stream_open_tv':
tv.c:107: warning: return' with no value, in function returning non-void"
According to libmpdemux/open.c 0 is an error so I guess it should return 0 if
it fails :)
Index: tv.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/tv.c,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -r1.20 -r1.21
--- tv.c 24 Dec 2001 11:01:16 -0000 1.20
+++ tv.c 25 Dec 2001 11:45:04 -0000 1.21
@@ -104,7 +104,7 @@
if (funcs->control(tvh->priv, TVI_CONTROL_IS_VIDEO, 0) != TVI_CONTROL_TRUE)
{
mp_msg(MSGT_TV, MSGL_ERR, "Error: no video input present!\n");
- return;
+ return 0;
}
if (!strcasecmp(tv_param_outfmt, "yv12"))
More information about the MPlayer-cvslog
mailing list