Rémi Denis-Courmont
d1ca34ed5b
vlc: use signal handlers rather than sigwait() for SIGCHLD
This works around Qt4 QProcess getting stuck waiting for its
SIGCHLD signal handler to be called.
16 years ago
Rémi Denis-Courmont
86c8ef3fb2
vlc: use SETMASK instead of BLOCK
We don't really want to inherit the blocked signal mask from our parent.
16 years ago
Rémi Denis-Courmont
1ea58b26cc
Revert "Do not load KDE Qt plugins until KDE gets a clue"
This reverts commit 96c7f9c269 .
This did not work with KDE 4.6 anyhow.
16 years ago
Rémi Denis-Courmont
96c7f9c269
Do not load KDE Qt plugins until KDE gets a clue
16 years ago
Rémi Denis-Courmont
5dc560308c
Restore correct SIGCHLD handling
This affects way too many code paths. Let KDE fix their own crap.
16 years ago
Rémi Denis-Courmont
2bc307db6f
Do run exit handlers, fix a few leaks
16 years ago
Rémi Denis-Courmont
5094db41a4
Work around QProcess bug (KDE bug #260719 )
16 years ago
Jai Menon
0dff66f4f6
Provide a variant of the CALL macro which doesn't use the nested functions GNU C extension.
This is useful when building with compilers like clang+llvm which do not
plan on implementing this extension.
Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
16 years ago
Rémi Denis-Courmont
2526aec1be
Remove useless #includes
16 years ago
Rafaël Carré
35c8b6fef6
winvlc.c: cosmetics
make the loop for copying options in argv nicer
16 years ago
Rafaël Carré
0dc9628b41
winvlc: enable media-library
16 years ago
Rafaël Carré
f94fecb990
vlc-cachegen: remove useless options
--ignore-config and --no-media-library are default
16 years ago
Rafaël Carré
3f71509f44
Disable media-library by default
Enable it in vlc binary
16 years ago
Rémi Denis-Courmont
dadb0622e6
Restore LibVLC/VERSION at the end of the HTTP user agent
16 years ago
Jean-Baptiste Kempf
a604eea5bf
Win32: fix resource file compilation
16 years ago
Jean-Baptiste Kempf
b7b88f91d0
Win32: correctly bump resource version
Close #3996
16 years ago
Rémi Denis-Courmont
725cf4eb04
Always call _exit() at end to avoid buggy exit handlers
Removes the KDE scheduler hack.
16 years ago
Rémi Denis-Courmont
351d62a850
Revert "Call libvlc_set_exit_handler() before the interfaces and playlist start"
This reverts commit 4d636fa3a7 .
16 years ago
Rémi Denis-Courmont
4d636fa3a7
Call libvlc_set_exit_handler() before the interfaces and playlist start
16 years ago
Rémi Denis-Courmont
d2c08b113d
Cosmetic fix
16 years ago
Rémi Denis-Courmont
e1c2b18a4d
After 3 seconds, allow SIGINT to kill the process
Older versions did that too, and it can be quite useful when debugging.
16 years ago
Rémi Denis-Courmont
de68b12937
Do not override signal functions for the time being
16 years ago
Rémi Denis-Courmont
7f9b7d3e31
Add a proper API to set the user agent
16 years ago
Rémi Denis-Courmont
d3b02be6e4
Remove the --user-agent hack
16 years ago
Jean-Baptiste Kempf
1e7c4bb02b
Ignore .exe files in bin/ folder
16 years ago
Geoffroy Couprie
89486ccb0b
Win32: Activate DEP on XP SP3. DEP is useless without ASLR, but people using an 10 year old OS don't have the right to complain
16 years ago
Jean-Baptiste Kempf
9f1f778cf1
Apple: do not try to run a non existing globalhotkey module.
16 years ago
Christophe Mutricy
3d2ef5f961
Missing in d1b5547ce1
16 years ago
Rémi Denis-Courmont
2dde53c525
Only print the first 5 threading errors each
16 years ago
Rémi Denis-Courmont
9e47aa722c
Do not disable X11 ARGB visuals ( fixes : #3581 )
The XVideo and X11 outputs can cope with this properly now
16 years ago
Rémi Denis-Courmont
82a5a07b28
Do signal handling in the main() thread
This saves one thread. Previously, the main thread was doing nothing.
16 years ago
Rémi Denis-Courmont
2098f7858a
Fix invalid free at exit on non-UTF-8 systems
16 years ago
Rémi Denis-Courmont
ae16ebf352
Add a secret --user-agent option to pass the application name
Currently, this is not used anywhere, but better have it for forward
compatibility. This is not as elegant as a dedicated libvlc function
call. But there is no other way to set a parameter before
libvlc_InternalInit() is called by libvlc_new(), short of changing the
libvlc_new() prototype (again). And that would probably be worse.
16 years ago
Rémi Denis-Courmont
94763831fb
Force SIGCHLD to default handler
... so that waitpid() works even if our parent process ignores SIGCHLD
(SIG_IGN is preserved across exec*()).
16 years ago
Rémi Denis-Courmont
61f8e439fd
Use setenv(), safer and cleaner than putenv()
16 years ago
Rémi Denis-Courmont
7f42234cab
Maemo: work-around segmentation fault when poll() unwinds
(This seems like a toolchain bug)
17 years ago
Rémi Denis-Courmont
053f9d6ea0
Fix the KDE open file dialog KIO scheduler crash avoidance hack
17 years ago
Pierre Ynard
69d7fdea2d
"#if HAVE_FOO" -> "#ifdef HAVE_FOO"
This fixes some warnings.
17 years ago
Rémi Denis-Courmont
0f7abe2f0e
Revert "Remove the Xlib no-ARGB hack"
This reverts commit 9f9f6d1153 .
17 years ago
Rémi Denis-Courmont
9f9f6d1153
Remove the Xlib no-ARGB hack
The XCB/XVideo (for a long time) and the XCB/X11 (since the commit
before the previous one) video output plugins will fail safe in case
the embedding window has an alpha channel. In VLC 1.0, the Xlib plugins
needed this hack as the Xlib error handler would terminate VLC.
If compositing is in use, VLC will now use GLX. This will require
software chroma conversion from YUV to RGB. Also, unless the GLX output
is explicitly selected, VLC will flash twice before it starts rendering.
First, it tries (and fail) to use XVideo, then plain X11. To fix this
cosmetic problem, we would need to keep the window across plugins.
I assume this change is needed to fix #3581 , but I have not tested, so
it may or may not be sufficient.
17 years ago
Rémi Denis-Courmont
c796d10a9a
Require Windows XP
(I doubt VLC 1.2.0 will be out before July 13th this year)
17 years ago
Rémi Denis-Courmont
b67a5864cb
Catch unsafe (but alas common) strerror()
17 years ago
Rémi Denis-Courmont
47e1d944ba
Ignore signal/sigaction on blocked signals
It is a bad idea, but it does not really harm.
17 years ago
Rémi Denis-Courmont
49a14c1606
Avoid calling dlsym at every code
First I ever need to use the auto keyword...
17 years ago
Rémi Denis-Courmont
1ae21d47f2
Avoid problems with srand() and speed up a bit (avoid dlsym)
17 years ago
Rémi Denis-Courmont
f014cdaf03
Improve signal/sigaction wrapper
17 years ago
Rémi Denis-Courmont
6c948b6dfd
Avoid a call to unsetenv/putenv on Qt4.6
This trick does not work with Qt <= 4.5 unfortunately.
17 years ago
Rémi Denis-Courmont
f0d55dabe9
Block setlocale()
This has already caused some problems (e.g. live555)
17 years ago
Rémi Denis-Courmont
389dcfadc1
Print dynamic library error message if applicable
17 years ago
Laurent Aimar
18cc244e3c
Fixed compilation when disabling vlc_enable_override().
17 years ago