[vlc-devel] commit: Fixed EPG current state. (Laurent Aimar )
git version control
git at videolan.org
Tue Mar 3 22:58:45 CET 2009
vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Tue Mar 3 22:58:18 2009 +0100| [2951cfd9d113994664f7b912745c660c747e82a1] | committer: Laurent Aimar
Fixed EPG current state.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=2951cfd9d113994664f7b912745c660c747e82a1
---
src/input/es_out.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/src/input/es_out.c b/src/input/es_out.c
index 5327dd7..0e159b3 100644
--- a/src/input/es_out.c
+++ b/src/input/es_out.c
@@ -1240,7 +1240,8 @@ static void vlc_epg_Merge( vlc_epg_t *p_dst, const vlc_epg_t *p_src )
}
}
/* Update current */
- vlc_epg_SetCurrent( p_dst, p_src->p_current ? p_src->p_current->i_start : -1 );
+ if( p_src->p_current )
+ vlc_epg_SetCurrent( p_dst, p_src->p_current->i_start );
/* Keep only 1 old event */
if( p_dst->p_current )
@@ -1310,8 +1311,8 @@ static void EsOutProgramEpg( es_out_t *out, int i_group, vlc_epg_t *p_epg )
/* Update now playing */
free( p_pgrm->psz_now_playing );
p_pgrm->psz_now_playing = NULL;
- if( p_epg->p_current && p_epg->p_current->psz_name && *p_epg->p_current->psz_name )
- p_pgrm->psz_now_playing = strdup( p_epg->p_current->psz_name );
+ if( p_pgrm->p_epg->p_current && p_pgrm->p_epg->p_current->psz_name && *p_pgrm->p_epg->p_current->psz_name )
+ p_pgrm->psz_now_playing = strdup( p_pgrm->p_epg->p_current->psz_name );
if( p_pgrm == p_sys->p_pgrm )
{
More information about the vlc-devel
mailing list