Remove dead code.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@35418 b3059339-0415-0410-9bf9-f77b7e298cf2
Do not attempt to write into a file if opening it failed.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@35419 b3059339-0415-0410-9bf9-f77b7e298cf2
Removing mmsu-related code

MMSU was never supported by MPlayer, and the protocol has been
deprecated. Since the code is not in use at all, Removing it
should not break anything.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@35420 b3059339-0415-0410-9bf9-f77b7e298cf2
Revert r35388.

The code is a bit confusing, but peeked commands
should never be freed.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@35421 b3059339-0415-0410-9bf9-f77b7e298cf2
Print rotation information as identify msg

This patch prints rotation information in metadata of mov files as
identify message with tag "ID_VID_<vid>_ROTATE" to enable frontends
to rotate the video.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@35422 b3059339-0415-0410-9bf9-f77b7e298cf2
Support FFmpeg Canopus lossless decoder.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@35423 b3059339-0415-0410-9bf9-f77b7e298cf2
Fix segmentation fault after end of file playback.

At this point (GUI_END_FILE), mpctx's sh_video has already been freed
and thus guiInfo.sh_video->codec->name mustn't be accessed which may
happen as a result of the following uiEventHandling() call.

Patch by Hans-Dieter Kosch, hdkosch kabelbw de.

(Although the Win32 GUI isn't affected, because there is no use of
guiInfo.sh_video->codec->name, it is patched accordingly for the sake of
consistency. At least, it won't be showing the old codec name then, when
there already is none.)


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@35424 b3059339-0415-0410-9bf9-f77b7e298cf2
Updated libdvdcss entry in the copyright file

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@35425 b3059339-0415-0410-9bf9-f77b7e298cf2
subreader: do not skip the first char of ASS fields.

Without this change, fields that can be sometimes empty and
sometimes not, such as the Effect field, are counted in an
inconsistent way. Since the number of fields is used to find
where the text starts, it leads to internal field arriving
on the video.

Bug reported anonymously on the users mailing list.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@35426 b3059339-0415-0410-9bf9-f77b7e298cf2
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
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
Fix leaks in case of overflow.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@35435 b3059339-0415-0410-9bf9-f77b7e298cf2
Add missing break.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@35436 b3059339-0415-0410-9bf9-f77b7e298cf2
Use size_t instead of unsigned in address arithmetic.

Use of size_t in address arithmetic provides better performance in
64bit system.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@35437 b3059339-0415-0410-9bf9-f77b7e298cf2