[vlc-commits] demux: ts: add empty eit event (fix #16679)
Francois Cartegnie
git at videolan.org
Thu Mar 3 20:24:29 CET 2016
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Thu Mar 3 20:22:35 2016 +0100| [30ae23ea2016a8fea522156a5d3efd993daef367] | committer: Francois Cartegnie
demux: ts: add empty eit event (fix #16679)
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=30ae23ea2016a8fea522156a5d3efd993daef367
---
modules/demux/mpeg/ts_psi_eit.c | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/modules/demux/mpeg/ts_psi_eit.c b/modules/demux/mpeg/ts_psi_eit.c
index d8d2837..999ce05 100644
--- a/modules/demux/mpeg/ts_psi_eit.c
+++ b/modules/demux/mpeg/ts_psi_eit.c
@@ -520,10 +520,12 @@ static void EITCallBack( demux_t *p_demux,
}
/* */
- if( i_start > 0 && psz_name && psz_text)
+ if( i_start > 0 )
{
- vlc_epg_AddEvent( p_epg, i_start, i_duration, psz_name, psz_text,
- *psz_extra ? psz_extra : NULL, i_min_age );
+ vlc_epg_AddEvent( p_epg, i_start, i_duration,
+ (psz_name && *psz_name) ? psz_name : NULL,
+ (psz_text && *psz_text) ? psz_text : NULL,
+ (psz_extra && *psz_extra) ? psz_extra : NULL, i_min_age );
/* Update "now playing" field */
if( p_evt->i_running_status == TS_SI_RUNSTATUS_RUNNING )
More information about the vlc-commits
mailing list