mirror of
https://code.videolan.org/videolan/vlc
synced 2024-09-12 13:44:56 +02:00
ts: dvbpsi: don't spam with irrelevant errors
should be fixed from libdvbpsi >= 1.2.0
This commit is contained in:
parent
4235014804
commit
4da7c465a6
@ -30,7 +30,15 @@ static inline void dvbpsi_messages(dvbpsi_t *p_dvbpsi, const dvbpsi_msg_level_t
|
||||
/* See dvbpsi.h for the definition of these log levels.*/
|
||||
switch(level)
|
||||
{
|
||||
case DVBPSI_MSG_ERROR: msg_Err( obj, "%s", msg ); break;
|
||||
case DVBPSI_MSG_ERROR:
|
||||
{
|
||||
#if DVBPSI_VERSION_INT <= ((1 << 16) + (2 << 8))
|
||||
if( strncmp( msg, "libdvbpsi (PMT decoder): ", 25 ) ||
|
||||
( strncmp( &msg[25], "invalid section", 15 ) &&
|
||||
strncmp( &msg[25], "'program_number' don't match", 28 ) ) )
|
||||
#endif
|
||||
msg_Err( obj, "%s", msg ); break;
|
||||
}
|
||||
case DVBPSI_MSG_WARN: msg_Warn( obj, "%s", msg ); break;
|
||||
case DVBPSI_MSG_NONE:
|
||||
case DVBPSI_MSG_DEBUG:
|
||||
|
Loading…
Reference in New Issue
Block a user