mpv/stream
al a04b35013a stream_ftp: support longer filenames
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
2012-11-21 20:03:58 +01:00
..
ai_alsa1x.c Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
ai_oss.c Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
asf_mmst_streaming.c stream, demux: replace off_t with int64_t 2012-11-20 18:00:15 +01:00
asf_mmst_streaming.h
asf_streaming.c stream, demux: replace off_t with int64_t 2012-11-20 18:00:15 +01:00
audio_in.c Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
audio_in.h
cache2.c stream: change STREAM_CTRL_GET_SIZE argument type to uint64_t 2012-11-20 18:00:14 +01:00
cache2.h terminal output: show cache fill changes in "PAUSED" message 2011-02-15 18:35:34 +02:00
cdd.h
cdinfo.c Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
cookies.c stream, demux: replace off_t with int64_t 2012-11-20 18:00:15 +01:00
cookies.h
dvb_tune.c Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
dvb_tune.h
dvbin.h
frequencies.c
frequencies.h
http.c Fix potential bugs and issues, general cleanups 2012-11-20 18:00:14 +01:00
http.h
network.c stream, demux: replace off_t with int64_t 2012-11-20 18:00:15 +01:00
network.h stream, demux: replace off_t with int64_t 2012-11-20 18:00:15 +01:00
pvr.h
stream.c stream, demux_lavf: minor cleanup for stream size code 2012-11-20 18:00:15 +01:00
stream.h stream: fix dvd:// + cache crashing 2012-11-20 18:00:15 +01:00
stream_bluray.c stream: fix dvd:// + cache crashing 2012-11-20 18:00:15 +01:00
stream_cdda.c stream, demux: replace off_t with int64_t 2012-11-20 18:00:15 +01:00
stream_cddb.c Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
stream_dvb.c Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
stream_dvd.c stream: fix dvd:// + cache crashing 2012-11-20 18:00:15 +01:00
stream_dvd.h Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
stream_dvd_common.c Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
stream_dvd_common.h
stream_file.c stream, demux: replace off_t with int64_t 2012-11-20 18:00:15 +01:00
stream_ftp.c stream_ftp: support longer filenames 2012-11-21 20:03:58 +01:00
stream_lavf.c stream, demux: replace off_t with int64_t 2012-11-20 18:00:15 +01:00
stream_mf.c Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
stream_netstream.c stream, demux: replace off_t with int64_t 2012-11-20 18:00:15 +01:00
stream_netstream.h Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
stream_null.c
stream_pvr.c Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
stream_radio.c Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
stream_radio.h
stream_smb.c stream, demux: replace off_t with int64_t 2012-11-20 18:00:15 +01:00
stream_tv.c Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
stream_udp.c Fix potential bugs and issues, general cleanups 2012-11-20 18:00:14 +01:00
stream_vcd.c stream, demux: replace off_t with int64_t 2012-11-20 18:00:15 +01:00
stream_vstream.c stream, demux: replace off_t with int64_t 2012-11-20 18:00:15 +01:00
tcp.c Fix potential bugs and issues, general cleanups 2012-11-20 18:00:14 +01:00
tcp.h
tv.c Fix potential bugs and issues, general cleanups 2012-11-20 18:00:14 +01:00
tv.h Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
tvi_bsdbt848.c Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
tvi_def.h Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
tvi_dummy.c Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
tvi_v4l2.c Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
udp.c Fix potential bugs and issues, general cleanups 2012-11-20 18:00:14 +01:00
udp.h
url.c Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
url.h stream: fix redirection for proxy URLs 2012-10-30 19:50:20 +01:00
vcd_read.h Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
vcd_read_darwin.h Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
vcd_read_fbsd.h Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00
vcd_read_win32.h Rename directories, move files (step 2 of 2) 2012-11-12 20:08:18 +01:00