Commit 4096b093 authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

ccess/ftp.c: Fix ftp pausing. Patch by Andrew Zaikin <andrew.zaikin at...

ccess/ftp.c: Fix ftp pausing. Patch by Andrew Zaikin <andrew.zaikin at>. Full comment below:
I can see that if you are watching video over ftp and you are pausing playback for a couple of minutes, VLC is unable to resume playback, because corresponding FTP data connection is closed (getting "connection reset by peer" error). To solve this issue I would propose to seek to the current position when VLC is resuming playback. Seek operation in ftp re-open data connection - that is exactly what we need here.
parent 84e30541
......@@ -550,7 +550,9 @@ static int Control( access_t *p_access, int i_query, va_list args )
/* */
/* Nothing to do */
pb_bool = (vlc_bool_t*)va_arg( args, vlc_bool_t* );
if ( !pb_bool )
return Seek( p_access, p_access->info.i_pos );
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment