/src/vlc/modules/mux/mpeg/dvbpsi_compat.h
Line | Count | Source |
1 | | /***************************************************************************** |
2 | | * dvbpsi_compat.h: Compatibility headerfile |
3 | | ***************************************************************************** |
4 | | * Copyright (C) 2013 VideoLAN Association |
5 | | * |
6 | | * Authors: Jean-Paul Saman <jpsaman@videolan.org> |
7 | | * |
8 | | * This program is free software; you can redistribute it and/or modify it |
9 | | * under the terms of the GNU Lesser General Public License as published by |
10 | | * the Free Software Foundation; either version 2.1 of the License, or |
11 | | * (at your option) any later version. |
12 | | * |
13 | | * This program is distributed in the hope that it will be useful, |
14 | | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
15 | | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
16 | | * GNU Lesser General Public License for more details. |
17 | | * |
18 | | * You should have received a copy of the GNU Lesser General Public License |
19 | | * along with this program; if not, write to the Free Software Foundation, |
20 | | * Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA. |
21 | | *****************************************************************************/ |
22 | | |
23 | | #ifndef DVBPSI_COMPAT_H |
24 | | #define DVBPSI_COMPAT_H |
25 | | |
26 | | static inline void dvbpsi_messages(dvbpsi_t *p_dvbpsi, const dvbpsi_msg_level_t level, const char* msg) |
27 | 270k | { |
28 | 270k | vlc_object_t *obj = (vlc_object_t *)p_dvbpsi->p_sys; |
29 | | |
30 | | /* See dvbpsi.h for the definition of these log levels.*/ |
31 | 270k | switch(level) |
32 | 270k | { |
33 | 126k | case DVBPSI_MSG_ERROR: |
34 | 126k | { |
35 | | #if DVBPSI_VERSION_INT <= ((1 << 16) + (2 << 8)) |
36 | | if( strncmp( msg, "libdvbpsi (PMT decoder): ", 25 ) || |
37 | | ( strncmp( &msg[25], "invalid section", 15 ) && |
38 | | strncmp( &msg[25], "'program_number' don't match", 28 ) ) ) |
39 | | #endif |
40 | 126k | msg_Err( obj, "%s", msg ); break; |
41 | 0 | } |
42 | 0 | case DVBPSI_MSG_WARN: msg_Warn( obj, "%s", msg ); break; |
43 | 0 | case DVBPSI_MSG_NONE: |
44 | 144k | case DVBPSI_MSG_DEBUG: |
45 | | #ifdef DVBPSI_DEBUG |
46 | | msg_Dbg( obj, "%s", msg ); |
47 | | #endif |
48 | 144k | break; |
49 | 270k | } |
50 | 270k | } Line | Count | Source | 27 | 195k | { | 28 | 195k | vlc_object_t *obj = (vlc_object_t *)p_dvbpsi->p_sys; | 29 | | | 30 | | /* See dvbpsi.h for the definition of these log levels.*/ | 31 | 195k | switch(level) | 32 | 195k | { | 33 | 59.6k | case DVBPSI_MSG_ERROR: | 34 | 59.6k | { | 35 | | #if DVBPSI_VERSION_INT <= ((1 << 16) + (2 << 8)) | 36 | | if( strncmp( msg, "libdvbpsi (PMT decoder): ", 25 ) || | 37 | | ( strncmp( &msg[25], "invalid section", 15 ) && | 38 | | strncmp( &msg[25], "'program_number' don't match", 28 ) ) ) | 39 | | #endif | 40 | 59.6k | msg_Err( obj, "%s", msg ); break; | 41 | 0 | } | 42 | 0 | case DVBPSI_MSG_WARN: msg_Warn( obj, "%s", msg ); break; | 43 | 0 | case DVBPSI_MSG_NONE: | 44 | 135k | case DVBPSI_MSG_DEBUG: | 45 | | #ifdef DVBPSI_DEBUG | 46 | | msg_Dbg( obj, "%s", msg ); | 47 | | #endif | 48 | 135k | break; | 49 | 195k | } | 50 | 195k | } |
Line | Count | Source | 27 | 3.27k | { | 28 | 3.27k | vlc_object_t *obj = (vlc_object_t *)p_dvbpsi->p_sys; | 29 | | | 30 | | /* See dvbpsi.h for the definition of these log levels.*/ | 31 | 3.27k | switch(level) | 32 | 3.27k | { | 33 | 2.15k | case DVBPSI_MSG_ERROR: | 34 | 2.15k | { | 35 | | #if DVBPSI_VERSION_INT <= ((1 << 16) + (2 << 8)) | 36 | | if( strncmp( msg, "libdvbpsi (PMT decoder): ", 25 ) || | 37 | | ( strncmp( &msg[25], "invalid section", 15 ) && | 38 | | strncmp( &msg[25], "'program_number' don't match", 28 ) ) ) | 39 | | #endif | 40 | 2.15k | msg_Err( obj, "%s", msg ); break; | 41 | 0 | } | 42 | 0 | case DVBPSI_MSG_WARN: msg_Warn( obj, "%s", msg ); break; | 43 | 0 | case DVBPSI_MSG_NONE: | 44 | 1.11k | case DVBPSI_MSG_DEBUG: | 45 | | #ifdef DVBPSI_DEBUG | 46 | | msg_Dbg( obj, "%s", msg ); | 47 | | #endif | 48 | 1.11k | break; | 49 | 3.27k | } | 50 | 3.27k | } |
ts_psip.c:dvbpsi_messages Line | Count | Source | 27 | 79 | { | 28 | 79 | vlc_object_t *obj = (vlc_object_t *)p_dvbpsi->p_sys; | 29 | | | 30 | | /* See dvbpsi.h for the definition of these log levels.*/ | 31 | 79 | switch(level) | 32 | 79 | { | 33 | 79 | case DVBPSI_MSG_ERROR: | 34 | 79 | { | 35 | | #if DVBPSI_VERSION_INT <= ((1 << 16) + (2 << 8)) | 36 | | if( strncmp( msg, "libdvbpsi (PMT decoder): ", 25 ) || | 37 | | ( strncmp( &msg[25], "invalid section", 15 ) && | 38 | | strncmp( &msg[25], "'program_number' don't match", 28 ) ) ) | 39 | | #endif | 40 | 79 | msg_Err( obj, "%s", msg ); break; | 41 | 0 | } | 42 | 0 | case DVBPSI_MSG_WARN: msg_Warn( obj, "%s", msg ); break; | 43 | 0 | case DVBPSI_MSG_NONE: | 44 | 0 | case DVBPSI_MSG_DEBUG: | 45 | | #ifdef DVBPSI_DEBUG | 46 | | msg_Dbg( obj, "%s", msg ); | 47 | | #endif | 48 | 0 | break; | 49 | 79 | } | 50 | 79 | } |
sections.c:dvbpsi_messages Line | Count | Source | 27 | 72.0k | { | 28 | 72.0k | vlc_object_t *obj = (vlc_object_t *)p_dvbpsi->p_sys; | 29 | | | 30 | | /* See dvbpsi.h for the definition of these log levels.*/ | 31 | 72.0k | switch(level) | 32 | 72.0k | { | 33 | 64.2k | case DVBPSI_MSG_ERROR: | 34 | 64.2k | { | 35 | | #if DVBPSI_VERSION_INT <= ((1 << 16) + (2 << 8)) | 36 | | if( strncmp( msg, "libdvbpsi (PMT decoder): ", 25 ) || | 37 | | ( strncmp( &msg[25], "invalid section", 15 ) && | 38 | | strncmp( &msg[25], "'program_number' don't match", 28 ) ) ) | 39 | | #endif | 40 | 64.2k | msg_Err( obj, "%s", msg ); break; | 41 | 0 | } | 42 | 0 | case DVBPSI_MSG_WARN: msg_Warn( obj, "%s", msg ); break; | 43 | 0 | case DVBPSI_MSG_NONE: | 44 | 7.88k | case DVBPSI_MSG_DEBUG: | 45 | | #ifdef DVBPSI_DEBUG | 46 | | msg_Dbg( obj, "%s", msg ); | 47 | | #endif | 48 | 7.88k | break; | 49 | 72.0k | } | 50 | 72.0k | } |
|
51 | | |
52 | | #endif |