+ input_thread_t *p_input = (input_thread_t *)vlc_object_get( p_sd,
+ i_id );
+
+ /* The Shoutcast server does not return a content-length so we
+ * can't know where we are. Use the number of inserted items
+ * as a hint */
+ if( p_input != NULL )
+ {
+ int i_state = var_GetInteger( p_input, "state" );
+ if( i_state == PLAYING_S )
+ {
+ float f_pos = (float)(p_sys->p_item->i_children)* 2 *100.0 /
+ (float)(p_sys->i_limit);
+ intf_UserProgressUpdate( p_sd, i_dialog_id, "Downloading",
+ f_pos );
+ }
+ vlc_object_release( p_input );
+ }
+ else if( p_sys->b_dialog )