Benjamin Pracht [Fri, 28 Apr 2006 17:18:46 +0000 (17:18 +0000)]
* Revert 15357, as it would make vlc crash if you try to load a main interface that doesn't exist
* Instead, use "screensaver,none" when trying to load the screensaver interface
* Same fix for onther interfaces loaded by libvlc
- Fix POSIX setting of non-blocking mode (we were clearing the R/W flags)
- Close-on-exec: Don't leak httpd client sockets into CGI scripts or
whatever child process we spawn.
Hmm, damn stupid fd_set implementation by Winsock does of course not
work like any other one: it's actually thirty two times as big than the
POSIX ones for any given FD_SETSIZE, plus FD_SET and FD_ISSET are O(n)
instead of O(1). But at least, the mingw implementations of FD_SET has
built-in overflow checks.
Also, Winsock insists on returning big socket numbers, so we can't drop
those above FD_SETSIZE or we have no TCP/IP support at all, anyway.
Whenever using select() companion macro FD_SET(), one must ensure that
the specified file descriptor does not exceeds the fd_set limit (FD_SETSIZE).
Registering a file descriptor above this limit is not defined (read: this is
a buffer overflow).
This is not normally exploitable on Linux because FD_SETSIZE equals the
default limit for file descriptors per processes, but should work on BSDs.
Cygwin is also very prone to this problem (but right, we don't use it). As
for Windows, it will overflow if you try to select() more than 64 sockets at
a time (regardless of the total numbers of socket), but for the sake of
simplicity and portability, this patch actually prevent opening more than
64 sockets at all.
There are still quite a bunch of plugins that needs fixing.
Jean-Paul Saman [Thu, 27 Apr 2006 19:13:42 +0000 (19:13 +0000)]
Play VOD RTSP from Amino STB with RTSP url: 'rtsp://192.168.0.5:5554//192.168.0.5:5554/dvd;type=VOD;servertype=MediaBase' Note the double slash // between the ip-addresses. Patch by Rob Casey (rob dot casey AT swishgroup dot com dot au)
Add option to force timeshift filter even if access can control pace or pause.
The goal is to be able to timeshift on live rtsp streams. The true fix would be to fix the rtsp access ...
Benjamin Pracht [Tue, 25 Apr 2006 16:47:56 +0000 (16:47 +0000)]
* screensaver.c, configure.ac: use directly dbus to disable gnome-screensaver if dbus is available upon compilation, instead of using system(gnome-screensaver-command
* interface.c: use the b_strict boolean when calling module_Need upon extra interface launching. This prevents vlc to try to launch a 2nd wx gui if the screensaver module isn't available.
* Handle submodules correctly in the prefs (so we can enable/disable them).
* Fix bug with modules chain if the begining or the end of one module's name matched another module's name. (like 'shoutcasttv' and 'shout')
Benjamin Pracht [Sun, 23 Apr 2006 20:31:06 +0000 (20:31 +0000)]
* Support for gnome-screensaver
* We should test if the command is in the path before trying to launch it
* Anyway, system is dirty, we should use dbus, at least for gnome-screensaver
Benjamin Pracht [Sun, 23 Apr 2006 14:37:54 +0000 (14:37 +0000)]
* bit masks for RV15 and RV16 were inverted (!) (or there is something I really haven't caught)
* Endianness fix for RV15 and RV16 (mostly used for x11)
* all: new handling of vout controls to allow serveral layouts/windows
with a vout (if only one is visible at the same time)
A callback is now called when a layout becomes visible or hidden.
The vout window is still not reparented correctly if the layout
is changed while a video is being played...
Change shoutcast service discovery module and write a new demux to be compatible with the new winamp 5.2 format. See trac ticket for detailed info. I'd appreciate if people could test this and proof read the code since we'll have to include this in 0.8.5 which is due to be released soon.