Commit fb77c0f7 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Qt4: remove useless playlist pointer

parent 0ad85b85
......@@ -338,7 +338,6 @@ static int Open( vlc_object_t *p_this, bool isDialogProvider )
intf_sys_t *p_sys = p_intf->p_sys = new intf_sys_t;
p_intf->p_sys->b_isDialogProvider = isDialogProvider;
p_sys->p_mi = NULL;
p_sys->p_playlist = pl_Get( p_intf );
/* */
#ifdef Q_WS_X11
......@@ -496,7 +495,7 @@ static void *Thread( void *obj )
if( !p_intf->p_sys->b_isDialogProvider )
{
RegisterIntf( (vlc_object_t *)p_intf );
playlist_Play( p_intf->p_sys->p_playlist );
playlist_Play( THEPL );
}
#endif
......
......@@ -71,13 +71,11 @@ struct intf_sys_t
int i_screenHeight; /* Detection of Small screens */
playlist_t *p_playlist; /* Core Playlist discussion */
QString filepath; /* Last path used in dialogs */
};
#define THEPL p_intf->p_sys->p_playlist
#define THEPL pl_Get(p_intf)
#define QPL_LOCK playlist_Lock( THEPL );
#define QPL_UNLOCK playlist_Unlock( THEPL );
......
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