if( newval.i_int == END_S || newval.i_int == ERROR_S )
{
- playlist_t *p_playlist = pl_Yield( p_intf );
- PL_LOCK;
- if( p_playlist->request.i_status == PLAYLIST_STOPPED )
- {
- /* if we stopped, we won't submit playing song */
- p_sys->b_submit = VLC_FALSE;
- }
- PL_UNLOCK;
- pl_Release( p_playlist );
+ /* We'll try to add the previously playing song in the queue */
+ if( AddToQueue( p_intf ) == VLC_ENOMEM )
+ return VLC_ENOMEM;
}
else if( oldval.i_int == PLAYING_S && newval.i_int == PAUSE_S )
time( &p_sys->time_pause );
p_sys->b_state_cb = VLC_FALSE;
p_sys->b_meta_read = VLC_FALSE;
-
- /* We'll try to add the previously playing song in the queue */
- if( AddToQueue( p_intf ) == VLC_ENOMEM )
- return VLC_ENOMEM;
+ p_sys->b_submit = VLC_FALSE;
p_playlist = pl_Yield( p_intf );
PL_LOCK;
{
PL_UNLOCK;
pl_Release( p_playlist );
- p_sys->b_submit = VLC_FALSE;
return VLC_SUCCESS;
}
if( !p_item )
{
vlc_object_release( p_input );
- p_sys->b_submit = VLC_FALSE;
return VLC_SUCCESS;
}
{
msg_Dbg( p_this, "Not an audio local file, not submitting");
vlc_object_release( p_input );
- p_sys->b_submit = VLC_FALSE;
return VLC_SUCCESS;
}
- p_sys->b_submit = VLC_TRUE;
p_sys->time_total_pauses = 0;
time( &p_sys->p_current_song.date );
return VLC_EGENERIC;
}
+ /* Now we have read the mandatory meta data, so we can submit that info */
+ p_sys->b_submit = VLC_TRUE;
+
ALLOC_ITEM_META( p_sys->p_current_song.psz_b, Album )
else
p_sys->p_current_song.psz_b = calloc( 1, 1 );