1
0
mirror of https://github.com/mpv-player/mpv synced 2025-04-26 05:09:29 +00:00

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 :)


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3729 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
pl 2001-12-25 11:45:04 +00:00
parent a1e6e85834
commit c969b3efb9

View File

@ -104,7 +104,7 @@ int stream_open_tv(stream_t *stream, tvi_handle_t *tvh)
if (funcs->control(tvh->priv, TVI_CONTROL_IS_VIDEO, 0) != TVI_CONTROL_TRUE) 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"); mp_msg(MSGT_TV, MSGL_ERR, "Error: no video input present!\n");
return; return 0;
} }
if (!strcasecmp(tv_param_outfmt, "yv12")) if (!strcasecmp(tv_param_outfmt, "yv12"))