*****************************************************************************/
/* Helpers */
-#define PL_LOCK vlc_object_lock( p_playlist );
-#define PL_UNLOCK vlc_object_unlock( p_playlist );
+#define PL_LOCK vlc_object_lock( p_playlist )
+#define PL_UNLOCK vlc_object_unlock( p_playlist )
#define pl_Get( a ) a->p_libvlc->p_playlist
#define pl_Yield( a ) __pl_Yield( VLC_OBJECT(a) )
VLC_EXPORT( void, __pl_Release, ( vlc_object_t * ) );
-#define pl_Release(a) __pl_Release( VLC_OBJECT(a) );
+#define pl_Release(a) __pl_Release( VLC_OBJECT(a) )
/* Playlist control */
#define playlist_Play(p) playlist_Control(p,PLAYLIST_PLAY, VLC_FALSE )
/* Release the playlist lock, because we may get stuck
* in input_DestroyThread() for some time. */
- PL_UNLOCK
+ PL_UNLOCK;
/* Destroy input */
input_DestroyThread( p_input );
{
PL_DEBUG( "dying input" );
PL_UNLOCK;
- msleep( 25000 ); // 25 ms
+ msleep( 25000 ); /* 25 ms */
PL_LOCK;
goto check_input;
}
{
msg_Dbg( p_playlist, "nothing to play" );
p_playlist->status.i_status = PLAYLIST_STOPPED;
- PL_UNLOCK
+ PL_UNLOCK;
if( b_playexit == VLC_TRUE )
{
PL_LOCK;
}
}
- PL_UNLOCK
+ PL_UNLOCK;
}
/** Playlist dying last loop */
/* If there is an input, kill it */
while( 1 )
{
- PL_LOCK
-
+ PL_LOCK;
if( p_playlist->p_input == NULL )
{
- PL_UNLOCK
+ PL_UNLOCK;
break;
}
/* Unlink current input */
p_input = p_playlist->p_input;
p_playlist->p_input = NULL;
- PL_UNLOCK
+ PL_UNLOCK;
/* Destroy input */
input_DestroyThread( p_input );
else if( p_playlist->p_input->b_error || p_playlist->p_input->b_eof )
{
input_StopThread( p_playlist->p_input );
- PL_UNLOCK
+ PL_UNLOCK;
continue;
}
else
{
p_playlist->p_input->b_eof = 1;
}
-
- PL_UNLOCK
+ PL_UNLOCK;
msleep( INTF_IDLE_SLEEP );
}