Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Steve Lhomme
VLC
Commits
3914f396
Commit
3914f396
authored
Mar 03, 2016
by
François Cartegnie
🤞
Browse files
demux: ts: simplify the current epg
parent
ff618fd5
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/demux/mpeg/ts_psi_eit.c
View file @
3914f396
...
@@ -474,12 +474,14 @@ static void EITCallBack( demux_t *p_demux,
...
@@ -474,12 +474,14 @@ static void EITCallBack( demux_t *p_demux,
/* */
/* */
if
(
i_start
>
0
&&
psz_name
&&
psz_text
)
if
(
i_start
>
0
&&
psz_name
&&
psz_text
)
{
vlc_epg_AddEvent
(
p_epg
,
i_start
,
i_duration
,
psz_name
,
psz_text
,
vlc_epg_AddEvent
(
p_epg
,
i_start
,
i_duration
,
psz_name
,
psz_text
,
*
psz_extra
?
psz_extra
:
NULL
,
i_min_age
);
*
psz_extra
?
psz_extra
:
NULL
,
i_min_age
);
/* Update "now playing" field */
/* Update "now playing" field */
if
(
p_evt
->
i_running_status
==
TS_SI_RUNSTATUS_RUNNING
&&
i_start
>
0
&&
psz_name
&&
psz_text
)
if
(
p_evt
->
i_running_status
==
TS_SI_RUNSTATUS_RUNNING
)
vlc_epg_SetCurrent
(
p_epg
,
i_start
);
vlc_epg_SetCurrent
(
p_epg
,
i_start
);
}
free
(
psz_name
);
free
(
psz_name
);
free
(
psz_text
);
free
(
psz_text
);
...
...
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