Commit 57c5eaa3 authored by Eric Petit's avatar Eric Petit

gcc < 3 fix

parent ec4d5637
...@@ -412,6 +412,8 @@ static void FollowAnchor ( intf_thread_t *p_intf ) ...@@ -412,6 +412,8 @@ static void FollowAnchor ( intf_thread_t *p_intf )
playlist_t *p_playlist; playlist_t *p_playlist;
playlist_item_t *p_current_item; playlist_item_t *p_current_item;
char *psz_uri_to_load; char *psz_uri_to_load;
mtime_t i_seconds;
vlc_value_t time;
p_playlist = (playlist_t *) vlc_object_find( p_intf, p_playlist = (playlist_t *) vlc_object_find( p_intf,
VLC_OBJECT_PLAYLIST, FIND_ANYWHERE ); VLC_OBJECT_PLAYLIST, FIND_ANYWHERE );
...@@ -435,8 +437,6 @@ static void FollowAnchor ( intf_thread_t *p_intf ) ...@@ -435,8 +437,6 @@ static void FollowAnchor ( intf_thread_t *p_intf )
msg_Dbg( p_intf, "URL to load is \"%s\"", psz_uri_to_load ); msg_Dbg( p_intf, "URL to load is \"%s\"", psz_uri_to_load );
#endif #endif
mtime_t i_seconds;
vlc_value_t time;
if( var_Get( p_intf->p_sys->p_input, "time", &time ) ) if( var_Get( p_intf->p_sys->p_input, "time", &time ) )
{ {
msg_Dbg( p_intf, "couldn't get time from current clip" ); msg_Dbg( p_intf, "couldn't get time from current clip" );
...@@ -579,6 +579,7 @@ void GoBack( intf_thread_t *p_intf ) ...@@ -579,6 +579,7 @@ void GoBack( intf_thread_t *p_intf )
history_item_t *p_new_history_item = NULL; history_item_t *p_new_history_item = NULL;
playlist_t *p_playlist = NULL; playlist_t *p_playlist = NULL;
char *psz_timed_url = NULL; char *psz_timed_url = NULL;
playlist_item_t *p_current_item;
#ifdef CMML_INTF_DEBUG #ifdef CMML_INTF_DEBUG
msg_Dbg( p_intf, "Going back in navigation history" ); msg_Dbg( p_intf, "Going back in navigation history" );
...@@ -618,7 +619,6 @@ void GoBack( intf_thread_t *p_intf ) ...@@ -618,7 +619,6 @@ void GoBack( intf_thread_t *p_intf )
return; return;
} }
playlist_item_t *p_current_item;
p_current_item = p_playlist->pp_items[p_playlist->i_index]; p_current_item = p_playlist->pp_items[p_playlist->i_index];
/* Save the currently-playing media in a new history item */ /* Save the currently-playing media in a new history item */
...@@ -657,6 +657,7 @@ void GoForward( intf_thread_t *p_intf ) ...@@ -657,6 +657,7 @@ void GoForward( intf_thread_t *p_intf )
history_item_t *p_history_item = NULL; history_item_t *p_history_item = NULL;
history_item_t *p_new_history_item = NULL; history_item_t *p_new_history_item = NULL;
playlist_t *p_playlist = NULL; playlist_t *p_playlist = NULL;
playlist_item_t *p_current_item;
#ifdef CMML_INTF_DEBUG #ifdef CMML_INTF_DEBUG
msg_Dbg( p_intf, "Going forward in navigation history" ); msg_Dbg( p_intf, "Going forward in navigation history" );
...@@ -706,7 +707,6 @@ void GoForward( intf_thread_t *p_intf ) ...@@ -706,7 +707,6 @@ void GoForward( intf_thread_t *p_intf )
vlc_object_release( p_playlist ); vlc_object_release( p_playlist );
return; return;
} }
playlist_item_t *p_current_item;
p_current_item = p_playlist->pp_items[p_playlist->i_index]; p_current_item = p_playlist->pp_items[p_playlist->i_index];
p_new_history_item->psz_uri = GetTimedURLFromPlaylistItem( p_intf, p_new_history_item->psz_uri = GetTimedURLFromPlaylistItem( p_intf,
p_current_item ); p_current_item );
......
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