spark: cVideo::SetVideoMode ignore irrelevant modes

This commit is contained in:
Stefan Seyfried
2012-02-25 13:22:57 +01:00
parent 26d7f46280
commit 6c5a60e128

View File

@@ -291,6 +291,11 @@ int cVideo::getPlayState(void)
void cVideo::SetVideoMode(analog_mode_t mode)
{
lt_debug("%s(%d)\n", __func__, mode);
if (!(mode & ANALOG_SCART_MASK))
{
lt_debug("%s: non-SCART mode ignored\n", __func__);
return;
}
const char *m;
switch(mode)
{