Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
vlc
Commits
6186747b
Commit
6186747b
authored
Aug 12, 2009
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated current EIT event only on Current/Following EIT tables.
parent
644a03b1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
4 deletions
+15
-4
modules/demux/ts.c
modules/demux/ts.c
+15
-4
No files found.
modules/demux/ts.c
View file @
6186747b
...
...
@@ -2870,7 +2870,8 @@ static char *EITConvertToUTF8( const unsigned char *psz_instring,
return
psz_outstring
;
}
static
void
EITCallBack
(
demux_t
*
p_demux
,
dvbpsi_eit_t
*
p_eit
)
static
void
EITCallBack
(
demux_t
*
p_demux
,
dvbpsi_eit_t
*
p_eit
,
bool
b_current_following
)
{
demux_sys_t
*
p_sys
=
p_demux
->
p_sys
;
dvbpsi_eit_event_t
*
p_evt
;
...
...
@@ -2987,7 +2988,7 @@ static void EITCallBack( demux_t *p_demux, dvbpsi_eit_t *p_eit )
}
if
(
p_epg
->
i_event
>
0
)
{
if
(
p_eit
->
i_service_id
==
p_sys
->
i_current_program
)
if
(
p_eit
->
i_service_id
==
p_sys
->
i_current_program
&&
b_current_following
)
{
p_sys
->
i_dvb_length
=
0
;
p_sys
->
i_dvb_start
=
0
;
...
...
@@ -3004,6 +3005,14 @@ static void EITCallBack( demux_t *p_demux, dvbpsi_eit_t *p_eit )
dvbpsi_DeleteEIT
(
p_eit
);
}
static
void
EITCallBackCurrentFollowing
(
demux_t
*
p_demux
,
dvbpsi_eit_t
*
p_eit
)
{
EITCallBack
(
p_demux
,
p_eit
,
true
);
}
static
void
EITCallBackSchedule
(
demux_t
*
p_demux
,
dvbpsi_eit_t
*
p_eit
)
{
EITCallBack
(
p_demux
,
p_eit
,
false
);
}
static
void
PSINewTableCallBack
(
demux_t
*
p_demux
,
dvbpsi_handle
h
,
uint8_t
i_table_id
,
uint16_t
i_extension
)
...
...
@@ -3027,8 +3036,10 @@ static void PSINewTableCallBack( demux_t *p_demux, dvbpsi_handle h,
msg_Dbg
(
p_demux
,
"PSINewTableCallBack: table 0x%x(%d) ext=0x%x(%d)"
,
i_table_id
,
i_table_id
,
i_extension
,
i_extension
);
dvbpsi_AttachEIT
(
h
,
i_table_id
,
i_extension
,
(
dvbpsi_eit_callback
)
EITCallBack
,
p_demux
);
dvbpsi_eit_callback
cb
=
i_table_id
==
0x4e
?
(
dvbpsi_eit_callback
)
EITCallBackCurrentFollowing
:
(
dvbpsi_eit_callback
)
EITCallBackSchedule
;
dvbpsi_AttachEIT
(
h
,
i_table_id
,
i_extension
,
cb
,
p_demux
);
}
}
#endif
...
...
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