Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libdvbpsi
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
libdvbpsi
Commits
d5b28e05
Commit
d5b28e05
authored
Feb 03, 2011
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixup:
19a31474
parent
15d26b4c
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
23 additions
and
13 deletions
+23
-13
src/demux.c
src/demux.c
+1
-1
src/demux.h
src/demux.h
+2
-2
src/dvbpsi.c
src/dvbpsi.c
+2
-2
src/dvbpsi.h
src/dvbpsi.h
+18
-4
src/dvbpsi_private.h
src/dvbpsi_private.h
+0
-4
No files found.
src/demux.c
View file @
d5b28e05
...
...
@@ -118,7 +118,7 @@ void dvbpsi_Demux(dvbpsi_t *p_dvbpsi, dvbpsi_psi_section_t *p_section)
{
/* Tell the application we found a new subtable, so that it may attach a
* subtable decoder */
p_demux
->
pf_new_callback
(
p_demux
->
p_new_cb_data
,
(
dvbpsi_decoder_t
*
)
p_demux
,
p_demux
->
pf_new_callback
(
p_demux
->
p_new_cb_data
,
p_dvbpsi
,
p_section
->
i_table_id
,
p_section
->
i_extension
);
/* Check if a new subtable decoder is available */
...
...
src/demux.h
View file @
d5b28e05
...
...
@@ -43,13 +43,13 @@ extern "C" {
*****************************************************************************/
/*!
* \typedef void(* dvbpsi_demux_new_cb_t) (void * p_cb_data,
dvbpsi_
decoder_t *p_decoder
,
dvbpsi_
t *p_dvbpsi
,
uint8_t i_table_id,
uint16_t i_extension);
* \brief Callback used in case of a new subtable detected.
*/
typedef
void
(
*
dvbpsi_demux_new_cb_t
)
(
void
*
p_cb_data
,
dvbpsi_
decoder_t
*
p_decoder
,
dvbpsi_
t
*
p_dvbpsi
,
uint8_t
i_table_id
,
uint16_t
i_extension
);
...
...
src/dvbpsi.c
View file @
d5b28e05
...
...
@@ -144,7 +144,7 @@ uint32_t dvbpsi_crc32_table[256] =
/*****************************************************************************
* dvbpsi_NewHandle
*****************************************************************************/
dvbpsi_t
*
dvbpsi_NewHandle
(
dvbpsi_message_cb
callback
,
int
level
)
dvbpsi_t
*
dvbpsi_NewHandle
(
dvbpsi_message_cb
callback
,
enum
dvbpsi_msg_level
level
)
{
dvbpsi_t
*
handle
=
calloc
(
1
,
sizeof
(
dvbpsi_t
));
if
(
handle
!=
NULL
)
...
...
@@ -492,7 +492,7 @@ void dvbpsi_error(dvbpsi_t *dvbpsi, const char *src, const char *fmt, ...)
void
dvbpsi_warning
(
dvbpsi_t
*
dvbpsi
,
const
char
*
src
,
const
char
*
fmt
,
...)
{
if
(
DVBPSI_MSG_WARN
ING
<=
dvbpsi
->
i_msg_level
)
if
(
DVBPSI_MSG_WARN
<=
dvbpsi
->
i_msg_level
)
{
va_list
ap
;
va_start
(
ap
,
fmt
);
...
...
src/dvbpsi.h
View file @
d5b28e05
...
...
@@ -61,6 +61,22 @@ typedef struct dvbpsi_s dvbpsi_t;
typedef
void
(
*
dvbpsi_message_cb
)(
dvbpsi_t
*
handle
,
const
char
*
msg
);
/*!
* \enum dvbpsi_msg_level
* \brief DVBPSI message level enum
* DVBPSI_MSG_NONE -1 : No messages
* DVBPSI_MSG_ERROR 0 : Error messages, only
* DVBPSI_MSG_WARNING 1 : Error and Warning messages
* DVBPSI_MSG_DEBUG 2 : Error, warning and debug messages
*/
enum
dvbpsi_msg_level
{
DVBPSI_MSG_NONE
=
-
1
,
DVBPSI_MSG_ERROR
=
0
,
DVBPSI_MSG_WARN
=
1
,
DVBPSI_MSG_DEBUG
=
2
,
};
/*****************************************************************************
* dvbpsi_t
*****************************************************************************/
...
...
@@ -82,9 +98,7 @@ struct dvbpsi_s
encoder */
/* Messages callback */
dvbpsi_message_cb
pf_message
;
/*!< Log message callback */
int
i_msg_level
;
/*!< Log level -1, 0, 1 or 2
(-1=none, 0=error, 1=warning,
2=debug) */
enum
dvbpsi_msg_level
i_msg_level
;
/*!< Log level */
};
/*****************************************************************************
...
...
@@ -102,7 +116,7 @@ struct dvbpsi_s
* Creates a handle to use with PSI decoder and encoder API functions. The
* handle must be freed with dvbpsi_DeleteHandle().
*/
dvbpsi_t
*
dvbpsi_NewHandle
(
dvbpsi_message_cb
callback
,
int
level
);
dvbpsi_t
*
dvbpsi_NewHandle
(
dvbpsi_message_cb
callback
,
enum
dvbpsi_msg_level
level
);
/*****************************************************************************
* dvbpsi_DeleteHandle
...
...
src/dvbpsi_private.h
View file @
d5b28e05
...
...
@@ -38,10 +38,6 @@ extern uint32_t dvbpsi_crc32_table[];
* libdvbpsi messages have the following format:
* "libdvbpsi [error | warning | debug] (<component>): <msg>"
*****************************************************************************/
#define DVBPSI_MSG_NONE -1
/* No messages */
#define DVBPSI_MSG_ERROR 0
/* Error messages, only */
#define DVBPSI_MSG_WARNING 1
/* Error and Warning messages */
#define DVBPSI_MSG_DEBUG 2
/* Error, warning and debug messages */
#ifdef HAVE_VARIADIC_MACROS
void
message
(
dvbpsi_handle
dvbpsi
,
const
int
level
,
const
char
*
fmt
,
...);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment