mirror of https://github.com/mpv-player/mpv
a04b35013a
This change was split into 8 patches. Squash them together, as they affect stream_ftp.c only. stream ftp: readline: Fix off-by-one error Even if max bytes are available read at most max - 1 bytes. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@35427 b3059339-0415-0410-9bf9-f77b7e298cf2 Conflicts: stream/stream_ftp.c stream ftp: readline: Always initialize output parameter buf Only exception if passed parameter max is less than or equal to zero. That cannot happen with the current code. Additionally change readresp function to always copy the first response line if the parameter rsp is non-NULL. This fixes some error reporting that used uninitialized stack arrays. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@35428 b3059339-0415-0410-9bf9-f77b7e298cf2 stream ftp: readline: Always try to read complete lines If there is not enough space in the provided line buffer just skip the remaining bytes until reaching EOL. Usually we are only interested in the first 5 characters and for everything else the (on-stack) response buffer should still be big enough. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@35429 b3059339-0415-0410-9bf9-f77b7e298cf2 stream ftp: Revise file descriptor usage * Set unbound descriptor variables to -1 * Always test >= 0 to see if a variable refers to a valid descriptor git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@35430 b3059339-0415-0410-9bf9-f77b7e298cf2 stream ftp: Only send QUIT command if connected Do not attempt to send commands without control connections. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@35431 b3059339-0415-0410-9bf9-f77b7e298cf2 stream ftp: Create buffers before opening control connection git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@35432 b3059339-0415-0410-9bf9-f77b7e298cf2 stream ftp: Allocate command buffer on-heap git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@35433 b3059339-0415-0410-9bf9-f77b7e298cf2 stream ftp: Increase command buffer size Allow for more longish file names (be it because of length or more lengthy characters). git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@35434 b3059339-0415-0410-9bf9-f77b7e298cf2 |
||
---|---|---|
.. | ||
ai_alsa1x.c | ||
ai_oss.c | ||
asf_mmst_streaming.c | ||
asf_mmst_streaming.h | ||
asf_streaming.c | ||
audio_in.c | ||
audio_in.h | ||
cache2.c | ||
cache2.h | ||
cdd.h | ||
cdinfo.c | ||
cookies.c | ||
cookies.h | ||
dvb_tune.c | ||
dvb_tune.h | ||
dvbin.h | ||
frequencies.c | ||
frequencies.h | ||
http.c | ||
http.h | ||
network.c | ||
network.h | ||
pvr.h | ||
stream.c | ||
stream.h | ||
stream_bluray.c | ||
stream_cdda.c | ||
stream_cddb.c | ||
stream_dvb.c | ||
stream_dvd.c | ||
stream_dvd.h | ||
stream_dvd_common.c | ||
stream_dvd_common.h | ||
stream_file.c | ||
stream_ftp.c | ||
stream_lavf.c | ||
stream_mf.c | ||
stream_netstream.c | ||
stream_netstream.h | ||
stream_null.c | ||
stream_pvr.c | ||
stream_radio.c | ||
stream_radio.h | ||
stream_smb.c | ||
stream_tv.c | ||
stream_udp.c | ||
stream_vcd.c | ||
stream_vstream.c | ||
tcp.c | ||
tcp.h | ||
tv.c | ||
tv.h | ||
tvi_bsdbt848.c | ||
tvi_def.h | ||
tvi_dummy.c | ||
tvi_v4l2.c | ||
udp.c | ||
udp.h | ||
url.c | ||
url.h | ||
vcd_read.h | ||
vcd_read_darwin.h | ||
vcd_read_fbsd.h | ||
vcd_read_win32.h |