From 9c8e4a2b16306a24d37053d7dc12c6de98afd74b Mon Sep 17 00:00:00 2001 From: Darren Salt Date: Sat, 14 Apr 2007 15:59:17 +0100 Subject: Oops. Silly mistake with fstat. --- src/input/input_dvb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/input/input_dvb.c b/src/input/input_dvb.c index a8598a001..ae7c0c21e 100644 --- a/src/input/input_dvb.c +++ b/src/input/input_dvb.c @@ -895,7 +895,7 @@ static channel_t *load_channels(xine_t *xine, xine_stream_t *stream, int *num_ch _x_message(stream, XINE_MSG_FILE_NOT_FOUND, filename, "Please run the dvbscan utility.", NULL); return NULL; } - if (fstat (f, &st) || !S_ISREG (st.st_mode)) { + if (fstat(fileno(f), &st) || !S_ISREG (st.st_mode)) { xprintf(xine, XINE_VERBOSITY_LOG, _("input_dvb: dvb channel file '%s' is not a plain file\n"), filename); fclose(f); return NULL; -- cgit v1.2.3