diff options
Diffstat (limited to 'stream')
-rw-r--r-- | stream/tv.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/stream/tv.c b/stream/tv.c index a6683830c5..a026bfc6c8 100644 --- a/stream/tv.c +++ b/stream/tv.c @@ -88,6 +88,14 @@ static void tv_scan(tvi_handle_t *tvh) tv_scan_t* scan; int found=0, index=1; + //Channel scanner without tuner is useless and causes crash due to uninitialized chanlist_s + if (tvh->functions->control(tvh->priv, TVI_CONTROL_IS_TUNER, 0) != TVI_CONTROL_TRUE) + { + mp_msg(MSGT_TV, MSGL_WARN, MSGTR_TV_ScannerNotAvailableWithoutTuner); + tvh->tv_param->scan=0; + return; + } + scan = tvh->scan; now=GetTimer(); if (!scan) { |