Skip to content

Commit 807e58a

Browse files
author
Mark Kendall
committed
Video Visualisations: Allow visualisations for mono audio streams.
1 parent 6e968b4 commit 807e58a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

mythtv/libs/libmythtv/visualisations/videovisual.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,10 @@
1313

1414
bool VideoVisual::CanVisualise(AudioPlayer *audio, MythRender *render)
1515
{
16+
if (!audio)
17+
return false;
1618
#ifdef FFTW3_SUPPORT
17-
if (render && audio->GetNumChannels() == 2)
19+
if (render && (audio->GetNumChannels() == 2 || audio->GetNumChannels() == 1))
1820
return true;
1921
#endif
2022
return false;

0 commit comments

Comments
 (0)