Commit 4da7c465 authored by Francois Cartegnie's avatar Francois Cartegnie

ts: dvbpsi: don't spam with irrelevant errors

should be fixed from libdvbpsi >= 1.2.0
parent 42350148
...@@ -30,7 +30,15 @@ static inline void dvbpsi_messages(dvbpsi_t *p_dvbpsi, const dvbpsi_msg_level_t ...@@ -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.*/ /* See dvbpsi.h for the definition of these log levels.*/
switch(level) 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_WARN: msg_Warn( obj, "%s", msg ); break;
case DVBPSI_MSG_NONE: case DVBPSI_MSG_NONE:
case DVBPSI_MSG_DEBUG: case DVBPSI_MSG_DEBUG:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment