[MPlayer-dev-eng] [PATCH 2/2] ao_mpegpes.c: Put code accessing DVB devices under CONFIG_DVB.
Reimar Döffinger
Reimar.Doeffinger at gmx.de
Sun Jan 24 14:41:36 EET 2021
---
libao2/ao_mpegpes.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libao2/ao_mpegpes.c b/libao2/ao_mpegpes.c
index ad75ddb41..9a1423427 100644
--- a/libao2/ao_mpegpes.c
+++ b/libao2/ao_mpegpes.c
@@ -161,6 +161,7 @@ static int preinit(const char *arg)
mp_msg(MSGT_VO, MSGL_ERR, "AO_MPEGPES, Unrecognized options\n");
return -1;
}
+#ifdef CONFIG_DVB
if(card==-1)
{
//search the first usable card
@@ -183,7 +184,6 @@ static int preinit(const char *arg)
}
card--;
-#ifdef CONFIG_DVB
if(!ao_file)
return init_device(card);
#else
--
2.30.0
More information about the MPlayer-dev-eng
mailing list