Commit Graph

86 Commits

Author SHA1 Message Date
KO Myung-Hun bb3d20e76d bin: fix SIGSEGV at exit on OS/2
--stats was added at commit c24ea5fb3a.
So free arguments after this.

Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
2014-02-23 16:38:33 +02:00
Rafaël Carré c24ea5fb3a --stats: default to false 2014-01-28 15:27:39 +01:00
Felix Paul Kühne a868dc7fe1 bin: derive a special Darwin version from vlc.c 2013-11-09 18:07:28 +01:00
Rémi Denis-Courmont 07794538aa vlc: use libvlc_set_app_id() 2013-06-16 11:34:23 +03:00
Rémi Denis-Courmont e0de50a5fa Remove old Nokia N900 hacks
These were broken since 6270a4c777.
2013-02-23 10:33:12 +02:00
Rafaël Carré dffdc4c734 Rewrite inhibit.c as an "inhibit" interface
Remove libvlc hack, and fixes missing input state changes
2012-12-03 14:43:56 +01:00
Rémi Denis-Courmont f3a44a5f35 vlc: return non-zero exit code if starting failed 2012-11-30 20:29:43 +02:00
Rémi Denis-Courmont 62d68cd9c1 vlc: start hotkeys interface explicitly
The actions of the hotkeys interface all affect the playlist, the
playlist's input, the playlist's input's vout(s), the playlist's aout
or the interfaces (controller). It has no use outside VLC.
2012-11-01 22:55:22 +02:00
KO Myung-Hun 04dc21938d vlc: Convert command line arguments to UTF-8 on OS/2
Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
2012-10-20 12:27:03 +03:00
Rémi Denis-Courmont 74258e6c12 Call libvlc_set_exit_handler() first
It should be called before exit can happen.
This restores reverted commit 4d636fa3a7.
2012-05-07 19:42:05 +03:00
Rémi Denis-Courmont feb4063c35 Use environment variable for data directory
...as for plugins directory. Most of the content is anyway per-process,
either because gettext and interfaces are per-process. The only caller
of the function that is not an interface or gettext is the DVB scanner.
This is even probably a bug.
2012-03-20 20:43:31 +02:00
Rémi Denis-Courmont b542d45898 vlc: fix regression with command line arguments 2012-03-20 17:57:02 +02:00
Rémi Denis-Courmont ae7b55a4f9 vlc: assume UTF-8 and drop dependency on libvlccore 2012-03-19 22:17:00 +02:00
Rémi Denis-Courmont db36045cd9 Start dbus always, move inhibit and dbus startup to vlc 2012-02-06 22:43:20 +02:00
Rémi Denis-Courmont 62a4f9f3be Remove the now broken Maemo 5 poll hack 2012-01-19 20:21:46 +02:00
KO Myung-Hun b5b1c1906f Fix compilation error due to pthread on OS/2
Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
2011-12-15 17:06:44 +02:00
Rafaël Carré efd58cb463 spelling 2011-11-15 15:58:03 -05:00
KO Myung-Hun 9eb2f121b3 Use kill() instead of pthread_kill() on OS/2.
pthread_kill() has not been implemented on OS/2, yet.

Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
2011-10-11 19:57:53 +03:00
KO Myung-Hun 29d1b42ef2 Disable globalhotkeys, none interface on OS/2
Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
2011-10-10 17:25:25 +03:00
KO Myung-Hun 4b5c54ec9f Fix the problem to free an invalid memory object.
The first element allocated by FromLocale() is argv[2] not argv[1].

Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
2011-10-10 17:25:24 +03:00
Rémi Denis-Courmont 62f348b047 Do not print start banner if stderr is not a TTY.
The user is not going to see the banner, and this tends to clutter
error logs (X server, cron jobs...) - not only on MacOS.
2011-07-16 12:48:48 +03:00
Rémi Denis-Courmont 5eff95a005 Assume we ahve setenv() and unsetenv() 2011-02-12 22:34:54 +02:00
Rémi Denis-Courmont 549ce2cad1 Override the plugins path with an environment variable...
...rather than with a command line option. This enables extending the
set of plugins paths globally, for all LibVLC applications.

Using an environment variable seems more logical than a command line
option considering that the module bank is shared by all VLC instances
in the process. In other words, it did not belong as a parameter to
libvlc_new().
2011-02-12 11:04:35 +02:00
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.
2011-02-03 14:57:00 +02:00
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.
2011-02-03 14:56:17 +02:00
Rémi Denis-Courmont 5dc560308c Restore correct SIGCHLD handling
This affects way too many code paths. Let KDE fix their own crap.
2011-01-30 14:20:26 +02:00
Rémi Denis-Courmont 2bc307db6f Do run exit handlers, fix a few leaks 2011-01-30 14:17:21 +02:00
Rémi Denis-Courmont 5094db41a4 Work around QProcess bug (KDE bug #260719) 2011-01-23 17:49:00 +02:00
Rémi Denis-Courmont 2526aec1be Remove useless #includes 2010-10-31 11:12:20 +02:00
Rafaël Carré 3f71509f44 Disable media-library by default
Enable it in vlc binary
2010-10-20 19:28:02 +02:00
Rémi Denis-Courmont dadb0622e6 Restore LibVLC/VERSION at the end of the HTTP user agent 2010-09-17 05:25:13 +03:00
Rémi Denis-Courmont 725cf4eb04 Always call _exit() at end to avoid buggy exit handlers
Removes the KDE scheduler hack.
2010-08-08 23:06:02 +03:00
Rémi Denis-Courmont 351d62a850 Revert "Call libvlc_set_exit_handler() before the interfaces and playlist start"
This reverts commit 4d636fa3a7.
2010-08-02 19:33:36 +03:00
Rémi Denis-Courmont 4d636fa3a7 Call libvlc_set_exit_handler() before the interfaces and playlist start 2010-08-01 13:51:50 +03:00
Rémi Denis-Courmont d2c08b113d Cosmetic fix 2010-08-01 13:50:53 +03:00
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.
2010-07-24 13:45:24 +03:00
Rémi Denis-Courmont 7f9b7d3e31 Add a proper API to set the user agent 2010-07-08 22:56:00 +03:00
Rémi Denis-Courmont d3b02be6e4 Remove the --user-agent hack 2010-07-08 22:45:34 +03:00
Jean-Baptiste Kempf 9f1f778cf1 Apple: do not try to run a non existing globalhotkey module. 2010-06-26 14:30:06 +02:00
Rémi Denis-Courmont 9e47aa722c Do not disable X11 ARGB visuals (fixes: #3581)
The XVideo and X11 outputs can cope with this properly now
2010-06-02 00:11:38 +03:00
Rémi Denis-Courmont 82a5a07b28 Do signal handling in the main() thread
This saves one thread. Previously, the main thread was doing nothing.
2010-05-30 20:52:23 +03:00
Rémi Denis-Courmont 2098f7858a Fix invalid free at exit on non-UTF-8 systems 2010-05-29 23:48:34 +03:00
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.
2010-05-29 19:27:32 +03:00
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*()).
2010-05-27 18:48:21 +03:00
Rémi Denis-Courmont 61f8e439fd Use setenv(), safer and cleaner than putenv() 2010-05-15 11:52:52 +03:00
Rémi Denis-Courmont 7f42234cab Maemo: work-around segmentation fault when poll() unwinds
(This seems like a toolchain bug)
2010-05-09 14:57:12 +03:00
Rémi Denis-Courmont 053f9d6ea0 Fix the KDE open file dialog KIO scheduler crash avoidance hack 2010-05-05 22:56:29 +03:00
Rémi Denis-Courmont 0f7abe2f0e Revert "Remove the Xlib no-ARGB hack"
This reverts commit 9f9f6d1153.
2010-05-02 22:59:54 +03:00
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.
2010-05-01 22:31:13 +03:00
Rémi Denis-Courmont 6c948b6dfd Avoid a call to unsetenv/putenv on Qt4.6
This trick does not work with Qt <= 4.5 unfortunately.
2010-04-12 23:16:01 +03:00