Commit f955a6aa authored by hartman's avatar hartman

* marq.c: compilation fixes for non c++ compilers

parent f4b976ef
......@@ -94,6 +94,7 @@ static int CreateFilter( vlc_object_t *p_this )
{
filter_t *p_filter = (filter_t *)p_this;
filter_sys_t *p_sys;
vlc_object_t *p_pl;
/* Allocate structure */
p_sys = p_filter->p_sys = malloc( sizeof( filter_sys_t ) );
......@@ -104,8 +105,7 @@ static int CreateFilter( vlc_object_t *p_this )
}
/* hook to the playlist */
vlc_object_t *p_pl =
vlc_object_find( p_this, VLC_OBJECT_PLAYLIST, FIND_ANYWHERE );
p_pl = vlc_object_find( p_this, VLC_OBJECT_PLAYLIST, FIND_ANYWHERE );
if( !p_pl )
{
return VLC_ENOOBJ;
......@@ -138,13 +138,13 @@ static void DestroyFilter( vlc_object_t *p_this )
{
filter_t *p_filter = (filter_t *)p_this;
filter_sys_t *p_sys = p_filter->p_sys;
vlc_object_t *p_pl;
if( p_sys->psz_marquee ) free( p_sys->psz_marquee );
free( p_sys );
/* Delete the marquee variables from playlist */
vlc_object_t *p_pl =
vlc_object_find( p_this, VLC_OBJECT_PLAYLIST, FIND_ANYWHERE );
p_pl = vlc_object_find( p_this, VLC_OBJECT_PLAYLIST, FIND_ANYWHERE );
if( !p_pl )
{
return;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment