diff options
Diffstat (limited to 'stream/tv.c')
-rw-r--r-- | stream/tv.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/stream/tv.c b/stream/tv.c index 17b1f9ecb9..726b7d0880 100644 --- a/stream/tv.c +++ b/stream/tv.c @@ -29,7 +29,6 @@ #include <stdlib.h> #include <unistd.h> #include <string.h> -#include <ctype.h> #include <sys/time.h> #include <assert.h> #include <libavutil/avstring.h> @@ -38,6 +37,7 @@ #include "common/msg.h" +#include "misc/ctype.h" #include "options/m_option.h" #include "options/m_config.h" @@ -628,7 +628,7 @@ static int open_tv(tvi_handle_t *tvh) int channel = 0; if (tvh->tv_param->channel) { - if (isdigit(*tvh->tv_param->channel)) + if (mp_isdigit(*tvh->tv_param->channel)) /* if tvh->tv_param->channel begins with a digit interpret it as a number */ channel = atoi(tvh->tv_param->channel); else |