Rémi Duraffort
3c3964589e
Modules: use a dynamic array for the shortcuts (this save 40K of memory on a 64bit system).
2010-04-21 11:48:44 +02:00
Rémi Denis-Courmont
a54335c703
snprintf() always puts a nul terminator...
...
...unless the buffer has zero size.
This is not to be confused with strncpy().
2010-04-11 11:19:42 +03:00
Rémi Denis-Courmont
d85a3f13e1
Remove debug statement
2010-03-29 23:55:00 +03:00
Rémi Denis-Courmont
de31f430bc
getopt: use stack instead of global variables, fixes #3366
2010-03-29 23:52:21 +03:00
Rémi Denis-Courmont
8c390d9ba7
system_Configure: do not depend on vlc_optind global
2010-03-29 23:49:08 +03:00
Rémi Denis-Courmont
6a0c1f9004
system_Configure: remove unused indirection
...
This is too late to change command line options anyway.
2010-03-29 23:47:04 +03:00
Rémi Denis-Courmont
ef1962f89a
GetFilenames: avoid use of vlc_optind global
2010-03-29 23:41:32 +03:00
Rémi Denis-Courmont
5960c93ca6
Remove useless indirection
2010-03-29 23:11:55 +03:00
Rémi Denis-Courmont
3048882f57
Print exact revision in addition to version number on console
2010-03-13 19:32:20 +02:00
Rémi Denis-Courmont
0db7b28884
Put only the copyright statement in COPYRIGHT_MESSAGE
2010-03-13 19:31:04 +02:00
Rémi Denis-Courmont
392d0b5326
Run system_Configure after playlist is created ( fixes #3344 )
2010-03-05 23:14:56 +02:00
Rémi Denis-Courmont
430c69a673
Avoid namespace clash with normal getopt
2010-02-28 17:01:47 +02:00
Rémi Denis-Courmont
2361280d58
getopt: remove useless functions and boiler plate, update licens
...
We only use getopt_long(). Also we don't care about pre-C89 compilers.
2010-02-28 17:01:47 +02:00
Rémi Denis-Courmont
993626efae
Win32: avoid error with missing drawable-hwnd
2010-02-21 19:41:12 +02:00
Erwan Tulou
902b4cd3a9
libvlc: intf-show and intf-popmenu must be created before interfaces are launched (via use of --extraintf)
...
This fixes 'vlc -I rc --extraintf skins' that fails to add a callback to these
variables because they are not yet created
(pointed out by assert failed in debug mode when calling var_DelCallback)
2010-02-16 15:32:49 +01:00
Rémi Denis-Courmont
2932220e9e
Store audio output interface variables into the input manager object
...
This partially fixes multiple media players in LibVLC. This also
removes a few run-away var_Create() in doVolumeChanges().
2010-02-14 17:12:48 +02:00
Rémi Denis-Courmont
7e4d50ac42
Remove pl_Release, and rename pl_Hold back to pl_Get
...
pl_Hold() assumed the playlist was already created.
pl_Release() does not solve any problem. Playlist synchronization is
done with the playlist lock, while playlist deletion must anyway be done
after all interfaces, services and other threads are joined.
2010-02-09 21:22:13 +02:00
Rémi Denis-Courmont
14ee5f1254
Create preparser and fetcher immediately
...
They do not create threads anymore (unless they have work to do).
LibVLC needs this because we are sloppy programmers^W^W^W^Wit still
depends on the playlist for item meta infos (it should probably
instantiate the fetcher and preparser directly).
Also, do not create the preparser if there is no fetcher.
2010-02-09 21:14:26 +02:00
Rémi Denis-Courmont
7e45ab1b28
utf8_* -> vlc_* (sed roxxors)
2010-02-07 15:25:29 +02:00
Rémi Denis-Courmont
d601e4ed29
Split file path functions out of vlc_charset.h into vlc_fs.h
2010-02-07 15:19:37 +02:00
Rémi Denis-Courmont
ec56260552
objects: remove leading underscores
2010-02-07 13:33:46 +02:00
Rémi Denis-Courmont
45e8e2a8eb
Hide message bank layout and cleanup a bit
...
Also fix a potential crash in case of stale subscriber
(print debug message to stderr).
2010-02-06 18:21:32 +02:00
Rémi Denis-Courmont
023c65cf89
Fix pl_Release() crash with -S
2010-02-04 18:24:23 +02:00
Rémi Denis-Courmont
c029b7afbe
Don't start the playlist thread if not needed
2010-01-31 01:09:02 +02:00
Rémi Denis-Courmont
bbb25382d9
Variables fixes
2010-01-31 01:09:02 +02:00
Rémi Denis-Courmont
2ec9fb757e
Load/delete plugins cache from plugins directory
...
Also refactor. Deletion and loading are now distinct functions.
2010-01-30 23:32:54 +02:00
Rémi Denis-Courmont
73b64879e3
Oops
2010-01-28 21:23:37 +02:00
Rémi Denis-Courmont
57c66b9533
Use module_gettext() for command line help
2010-01-28 19:59:50 +02:00
Rémi Denis-Courmont
46c51df557
Factor out LoadMessages to support other text domains
2010-01-28 19:50:12 +02:00
Rémi Denis-Courmont
f6f1fa0be9
Attach playlist ASAP
...
vlc_object_find is not used for the playlist anymore, so this is OK.
2010-01-28 18:54:44 +02:00
Rémi Denis-Courmont
10d0f724bc
Do not translate ""
...
That would return the PO file metadatas.
2010-01-23 20:33:35 +02:00
Rémi Denis-Courmont
03beb7e6ae
Do not reload the command line
...
Loading the configuration from vlcrc or resetting the configuration does
not alter the command line parameter anymore.
2010-01-23 20:27:37 +02:00
Rémi Denis-Courmont
220ce67be8
--full-help: do not alter the configuration, only variables
2010-01-23 20:25:57 +02:00
Rémi Denis-Courmont
bacc633953
Do not reload the module bank if the language is overriden
...
The module bank is now locale-independent, so this was a waste fo time.
2010-01-23 20:19:42 +02:00
Rémi Denis-Courmont
711605aff3
Add build date/time in the version infos
2010-01-19 23:40:49 +02:00
Rémi Denis-Courmont
00dc86ba39
Remove COMPILE_DOMAIN, merge into COMPILE_HOST
2010-01-19 23:28:03 +02:00
Ramiro Polla
3bb2fbc5cc
Only print CPU capabilities if there are any.
...
Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
2010-01-18 22:41:09 +02:00
Pierre Ynard
c691aa044d
LibVLC: fix typo
2010-01-18 00:03:14 +01:00
Rémi Denis-Courmont
e49c415925
Remove --save-config
2010-01-17 22:28:40 +02:00
Rémi Denis-Courmont
c34586fcb8
LibVLC: use var_Inherit instead of config_Get
2010-01-17 21:51:15 +02:00
Rémi Denis-Courmont
fcf05b2478
config_GetDataDirDefault(): return a heap-allocated string
2010-01-13 18:40:35 +02:00
Rémi Denis-Courmont
51f8337ec5
Typo
2010-01-13 00:13:33 +02:00
Rémi Denis-Courmont
22fdf98f4c
Remove useless <errno.h> inclusions
2010-01-11 19:08:42 +02:00
Rémi Denis-Courmont
80158557a6
Make volume-change a void rather than a boolean
2010-01-10 15:54:09 +02:00
Francois Cartegnie
a82dc303ae
libvlc: introduce 'Muted' as a whole state, not as volume 0
...
Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
2010-01-10 15:43:15 +02:00
Rémi Denis-Courmont
646510099d
Refactor key mapping internals
2010-01-03 16:37:32 +02:00
Rémi Denis-Courmont
e973801d96
Fix struct hotkey
2010-01-03 16:32:56 +02:00
Rémi Denis-Courmont
3b90678b8f
Remove useless member of libvlc private data
2010-01-02 23:15:58 +02:00
Rémi Denis-Courmont
36827a8377
Don't use a static mutex for libvlc_wait on Win32 ( fixes : #3219 )
2010-01-02 23:14:20 +02:00
Rémi Denis-Courmont
52b3415e52
Allow more than one thread to call libvlc_wait
2010-01-02 22:58:13 +02:00
Rémi Duraffort
9f584dfb56
libvlc: destroy the intf variable only if created just before.
2009-12-28 14:18:28 +01:00
Rémi Denis-Courmont
1b7540c4e7
Check that hotkeys are sorted properly (debug-only self-test)
2009-12-28 14:23:02 +02:00
Antoine Cellerier
469613e252
Add vlc_GetActionId().
...
vlc_GetActionId() is used to get an ACTIONID from the action's name, which is way better than getting the hotkey setting from the hotkey name and then, if the hotkey was set, looking up the corresponding action id ... since this also works if the hotkey isn't set. Export this function in lua and use in common.hotkey().
2009-12-27 22:05:22 +01:00
Rémi Denis-Courmont
633a5efc47
--list: do not use colors if stdout is not a TTY
...
This is consistent with --help behaviour.
2009-12-23 21:20:15 +02:00
Rémi Denis-Courmont
f5a761654c
Revert "No need to show service probes in the module list"
...
This reverts commit b2ee1bcfbc
.
This is an ugly and confusing hack.
2009-12-23 21:16:57 +02:00
Fabio Ritrovato
b2ee1bcfbc
No need to show service probes in the module list
2009-12-23 17:47:18 +01:00
Fabio Ritrovato
df59661169
Don't use color when listing modules on Windows
2009-12-22 18:34:24 +01:00
Antoine Cellerier
2093cfa748
Second (blind) attempt at fixing win and mac.
2009-12-22 12:31:43 +01:00
Antoine Cellerier
03fbbec7cb
Revert "Probably fix LoadMessages() on windows. (Untested ... I'm not even sure that the config is initialised when we're called. But that shouldn't matter, we'll just fallback to the default data directory)"
...
This reverts commit 4c5f93c1dd
.
2009-12-22 12:31:43 +01:00
Antoine Cellerier
4c5f93c1dd
Probably fix LoadMessages() on windows. (Untested ... I'm not even sure that the config is initialised when we're called. But that shouldn't matter, we'll just fallback to the default data directory)
2009-12-22 11:08:59 +01:00
Pierre d'Herbemont
808e8fb591
libvlc: don't abort but return an error code if no modules were found.
...
Also, let the possibility to run vlc -H.
Pointed-out-by Rémi Denis-Courmont <remi@remlab.net>.
2009-12-10 23:06:33 +01:00
Rémi Denis-Courmont
709be17708
Use ...NonEmpty... for --open
2009-12-10 18:46:22 +02:00
Rémi Denis-Courmont
a27a455080
Fix --syslog
...
psz_logmode is tested for NULLity, so we need to use *NonEmpty*.
Also, always delete the variable. If the reference count was 1, we will
revert back to the configuration value, which makes no difference.
2009-12-10 18:45:04 +02:00
Rémi Denis-Courmont
f004052694
core: config_GetPsz -> var_CreateGetNonEmptyString
2009-12-10 18:44:20 +02:00
Pierre d'Herbemont
067be17f09
libvlc: Make sure we don't continue vlc exectution if no modules where found.
...
This is done to better diagnosticate misconfiguration of libvlc path.
2009-12-10 02:02:48 +01:00
Laurent Aimar
f7ba8bf376
Added SSSE3/SSE4.1/SSE4.2 support to libvlc.
2009-11-24 19:50:27 +01:00
Rémi Denis-Courmont
69329f7975
Unused variable
2009-11-10 22:19:09 +02:00
Rémi Denis-Courmont
49d120b29d
Nice solution to a nasty printf hack (sic)
2009-11-09 23:36:17 +02:00
Rémi Denis-Courmont
97c94423c2
Use gettext when printing help
2009-11-09 23:28:38 +02:00
Rémi Denis-Courmont
745e085149
Maemo: the D-Bus inhibit plugin is not supported
2009-10-19 22:33:40 +03:00
Rémi Denis-Courmont
145903d05b
HAVE_FPU: make constant
...
Currently, we do not have any architecture where this would not be
a build-time constant. Constancy helps fixing a few issues in the audio
path.
2009-10-19 22:15:30 +03:00
Rémi Denis-Courmont
1684489175
screensaver: convert to inhibit plugin
...
Simplify and avoid running a thread and an interval timer
when there is no video output.
2009-10-18 22:30:39 +03:00
Rémi Denis-Courmont
0565b5c2e5
Remove HAL support
...
HAL is officially deprecated. The new udev discs module provide the same
functionality in VLC. Moreover, the plugin was waking up the CPU at
regular intervals. Last, InitDeviceValues seemed to cause problems with
wrong disc paths being saved to vlcrc for some people
2009-10-17 18:18:55 +03:00
Rémi Duraffort
64b6540980
Use var_CreateGet when applicable.
2009-10-10 11:26:45 +02:00
Rémi Denis-Courmont
5655e629ca
Convert paths from command line arguments to URIs
2009-10-05 22:59:15 +03:00
Rémi Denis-Courmont
67a1b3e1ed
Simplification
2009-09-24 20:21:14 +03:00
Jean-Baptiste Kempf
ceb2efd469
SSE3 detection (runtime)
...
Isn't fork() supposed to be slow on Windows?
2009-09-23 01:48:27 +02:00
Rémi Denis-Courmont
be5d9107a6
Use <vlc_cpu.h>
2009-09-22 18:21:37 +03:00
Rémi Denis-Courmont
13b5c2e513
LibVLC: only print relevant capabilities in debug
2009-09-22 18:21:36 +03:00
Rémi Denis-Courmont
5712ce24d8
Remove unused 486 and 586 capabilities
2009-09-20 16:07:54 +03:00
Rémi Denis-Courmont
5dc4a72110
Remove never set, never used Pentium Pro capability
2009-09-20 16:05:25 +03:00
Rémi Denis-Courmont
e6669e32e8
Set object name from module_need()
2009-09-20 12:48:37 +03:00
Rémi Duraffort
1aa499923c
Fix race condition : volume-change variable is requiered by rc interface module
...
and was created after the creation of the interface.
2009-09-18 19:29:10 +02:00
Erwan Tulou
e8795696a9
core: add snapshot-file and record-file for signalling new materials created by vlc
2009-08-29 20:52:51 +02:00
Rémi Denis-Courmont
df85fc8b8b
Never rename an object post attach & un-deprecated find_name
2009-08-23 22:27:26 +03:00
Pierre d'Herbemont
66f6cb9862
libvlc: Put vlc_usage in the same file than where it is used.
2009-08-20 19:09:53 +02:00
Rémi Denis-Courmont
073c5a248e
Hide psz_object_name in private data
2009-08-20 00:05:31 +03:00
Jean-Baptiste Kempf
17492dca04
Remove the ShowIntf module. It doesn't make sense when MacOS and Qt gui have a fullscreen controller.
2009-08-12 16:30:45 +02:00
Rémi Denis-Courmont
bb5bc9b0f5
Do not exit with VLC error codes
...
exit() cannot return negative numbers (the high-order bits are ignored).
And anyway, that's not a meanigful place for VLC error codes. It is also
questionable whether we should exit() from LibVLC anyway...
2009-08-02 19:54:19 +03:00
Rémi Denis-Courmont
f52524a211
vlc_clone(): abide by --rt-priority and --rt-offset
...
This avoids using real-time when not asked. It should also fix a
pthread_create() permission failure on FreeBSD (Linux seems to ignore
this error silently).
2009-07-25 16:21:18 +03:00
Alexis Ballier
7c39ad95f5
Make sure vlc_release doesn't destroy a non existent spinlock.
...
This was actually fixed by [697457bcb6
] but then [952a943ae2
] came which made it useless.
Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
2009-07-13 19:30:46 +03:00
Rémi Denis-Courmont
51af87605f
Avoid NULL for %s
...
(cherry picked from commit 2e02b35f4ee4aa36bd659fc898c31abc1cf31891)
2009-07-12 23:32:07 +03:00
Derk-Jan Hartman
f81198e718
string: missing space
2009-06-23 19:22:23 +02:00
Rémi Denis-Courmont
abfc96fabb
Print the changeset with --version
2009-06-03 22:21:53 +03:00
Jean-Baptiste Kempf
4aed145245
Fix obvious typo that prevented correct build.
2009-05-24 01:47:10 +02:00
Rémi Denis-Courmont
b13a8009cc
Quit VLC explicitly before we destroy the interface
...
If VLC is being destroyed for programmatic reasons (libvlc_release()),
the user might not have "quit".
2009-05-23 21:30:40 +03:00
Rémi Denis-Courmont
8456e0b9b1
Unused variable
2009-05-23 21:30:29 +03:00
Rémi Denis-Courmont
5af4a9fca6
Use intf_Create() directly whenever a module is specified
2009-05-23 21:25:23 +03:00
Rémi Denis-Courmont
f645d20b9f
Replace intf_StopThread() with intf_DestroyAll()
2009-05-23 21:14:09 +03:00
Rémi Denis-Courmont
4a4dc6dfc2
Merge intf_Create() and intf_RunThread()
...
Interfaces do not have an event handler that would justify the
separation. Indeed, no caller did anything in-between.
Also, the "primary" reference to the interface object belongs to the
main thread because of the libvlc cleanup procedure. Therefore, the
interface thread pointer really should not be returned to the creator.
Note that this does not really fix the small race condition but it
conceals it within intf_Create() and libvlc_InternalCleanup().
2009-05-23 20:18:29 +03:00
Rémi Denis-Courmont
9f36a1de9d
Remove core support for global drawable
2009-05-13 18:52:21 +03:00
Rémi Denis-Courmont
b8247ace03
Make the config file lock per process rather than per instance
2009-05-06 20:25:59 +03:00
Rémi Denis-Courmont
d6d444d2e4
No need to keep the config file around all the time
2009-05-06 18:40:06 +03:00
Rémi Denis-Courmont
0c88710e2c
Only load globalhotkeys if requested by caller
...
This leaves the choice for bindings to use it or not.
I wish we did the same for hotkeys and inhibit but it would break
backward libvlc API compatibility.
2009-05-06 18:15:27 +03:00
Rémi Denis-Courmont
d80646034a
Make drawable-xid a config item, so VLC can be embedded from the CLI
2009-04-25 17:01:54 +03:00
Rémi Denis-Courmont
7d5bf1ea1b
(p?)gettext -> vlc_\1gettext
2009-04-21 12:01:44 +03:00
Christophe Mutricy
54b5bd637f
Add the comment on why and how we translate "C" in vlc.pot
2009-04-18 01:42:49 +01:00
Rémi Denis-Courmont
1e9c9c8388
Include <libintl.h> only when really needed
...
Especially, plugins are not supposed to link with -lintl directly.
2009-04-16 11:23:46 +03:00
Rémi Denis-Courmont
e1e7a51039
Thread-safe and more compact hotkeys initialization
2009-04-15 15:37:53 +03:00
Rémi Denis-Courmont
8c7ec7a41e
Format string (make gcc happy)
2009-03-31 18:22:01 +03:00
Jean-Paul Saman
054e7db91b
macosx: vout drawable rework.
...
The macosx drawable variable that used to hold the drawable window reference is splitted up in two variables "drawable-agl" (used by macosx safari/mozilla plugin) and "drawable-gl" (used by macosx interface).
2009-03-17 14:03:09 +01:00
Rémi Denis-Courmont
6f037fa478
Add a centralized avcodec lock
...
avcodec is used from at least three different plugins: avcodec,
switcher (which seems dead though) and indirectly in avformat. We need
to have a common interlock for all of these.
2009-03-12 17:41:49 +02:00
Rémi Denis-Courmont
6113551a3b
Remove interaction core
...
One useless thread gone (the new subsystem does not need a thread).
2009-03-08 22:55:10 +02:00
Rémi Denis-Courmont
bde4f0ba22
Hack to get the leaked object tree back
2009-03-05 22:28:02 +02:00
Rémi Denis-Courmont
cc4e24a8d6
Hopefully thread-safer replacement for intf_UserFatal
2009-03-05 22:02:05 +02:00
Rémi Denis-Courmont
1775b86891
Detect LibVLC object leaks
...
Since none of our otehr threads exist at the end, this is safe.
2009-03-05 19:24:12 +02:00
Rémi Denis-Courmont
31bdf929bc
Privatize the LibVLC exit lock
2009-03-05 19:01:51 +02:00
Rémi Denis-Courmont
3d729748de
Remove uninitialized and unsynchronized global stats
...
This could crash the input thread(s).
2009-02-28 19:16:29 +02:00
Rémi Denis-Courmont
247685e30a
Keep the bank lock until plugins are loaded.
...
This is a bit ugly but it fixes two race conditions:
- loading plugins while another thread is initializing,
- using the bank when the first thread has not completed loading plugins.
Unfortunately, there is still a small race when module_need() calls
AllocatePlugin(). It really should not -need to- do that, but the fix would
be quite invasive. We would basically need to store plugin callbacks by names
rather than function pointers. Then the module descriptors would be fully
serializable, so we would not need to re-describe plugins when loading their
shared object. That would also fix the last known corruption bug in the plugins
cache.
2009-02-17 23:28:40 +02:00
Rémi Denis-Courmont
f8cca7cf7a
Remove remnants of builtin modules support
...
If we ever to reintroduce builtin modules, we anyway would need to
rewrite that part.
2009-02-17 22:32:02 +02:00
Christophe Mutricy
cf759926c9
Set the libvlc internal verbosity
...
When set from the config file
2009-02-17 00:13:45 +00:00
Rémi Denis-Courmont
dbfffa2a25
Remove all uses of VLC_Changeset
2009-02-14 20:02:30 +02:00
Rémi Duraffort
72fa5a9d8e
No need to add a '\n' at the end of messages passed to msg_*
2009-02-14 09:06:32 +01:00
Rémi Denis-Courmont
edfdafc7f0
typo
2009-02-12 22:23:08 +02:00
Rémi Denis-Courmont
b15994bd7d
OSX: keep the (misdesigned) drawable variable
2009-02-12 17:37:45 +02:00
Rémi Denis-Courmont
d5f982b370
Remove the verbose callback.
...
It was not thread-safe, and only used by ncurses (fixed earlier).
2009-02-10 19:43:36 +02:00
Rémi Denis-Courmont
ab044cf5fc
Drawable: separate XIDs and HWNDs
...
Also partially (internally only) fix missing Win64 drawable bits
2009-02-02 21:39:07 +02:00
Rémi Duraffort
3514349e20
Revert "fix buffer overflows."
...
We use a sizeof and not a strlen so that's ok.
This reverts commit 8ecb5ba108
.
2009-01-29 17:03:36 +01:00
Rémi Duraffort
8ecb5ba108
fix buffer overflows.
2009-01-29 16:56:10 +01:00
Rémi Duraffort
02bf31b454
libvlc: Fix a (tiny) buffer overflow and fix #2449
2009-01-26 16:13:33 +01:00
Laurent Aimar
3e97bc6eaf
Automatically insert globalhotkeys when available.
2009-01-25 19:23:53 +01:00
Rémi Denis-Courmont
484b0aa1c4
libvlc_InternalWait, libvlc_Quit: wait and signal libvlc exit
2009-01-24 20:57:47 +02:00
Laurent Aimar
15abf70b6e
Changed playlist_AddExt to be more consistant with input_item_NewWithType.
2009-01-18 15:14:55 +01:00
Rémi Denis-Courmont
973a412d24
Memory leaks
2009-01-17 22:22:15 +02:00
Rémi Denis-Courmont
6858023f09
Destroy/cleanup should be consistent with Create/Init
...
Otherwise, the Create/Destroy sequence crashes.
2009-01-17 22:16:16 +02:00
Rémi Denis-Courmont
07fb0fb955
Cleanup functions cannot fail
2009-01-17 22:16:16 +02:00
Rémi Denis-Courmont
36547e29d7
Remove p_static_vlc, not used anymore
2009-01-17 22:16:16 +02:00
Rémi Denis-Courmont
851643ca61
Fix assertion
2009-01-17 15:31:23 +02:00
Hannes Domani
c85aed3c01
Global Hotkeys for windows
...
Signed-off-by: Laurent Aimar <fenrir@videolan.org>
2009-01-17 13:29:29 +01:00
Rémi Denis-Courmont
2a6fb859cc
Assert proper alignment of the atomic reference counter
2009-01-17 14:06:41 +02:00
Rémi Denis-Courmont
ad671cf41a
libvlc: add SD plugins one by one
2009-01-10 20:28:51 +02:00
Rémi Denis-Courmont
4ab0edafb3
Remove the un-needed horrible vout release hack
2009-01-10 12:54:59 +02:00
Rémi Denis-Courmont
5ec8b1c561
Remove some useless #includes
2009-01-08 21:11:18 +02:00
Laurent Aimar
19f1b2ee46
Split creation/destruction and activation/deactivation of playlist.
...
It will allow to fix playlist<->interface dependency problems.
2009-01-05 20:49:06 +01:00
Rémi Denis-Courmont
b481254cc8
Use var_TriggerCallback as appropriate
2009-01-05 19:36:26 +02:00
Rémi Denis-Courmont
f2f052e2c8
Print early debug messages only after verbosity is known
2008-12-28 22:15:22 +02:00
Rémi Denis-Courmont
23e3fc90b9
Get proper verbosity setting ASAP
2008-12-28 22:09:47 +02:00
Rémi Duraffort
ffbbecfb7a
module_need wants pointers and boolean so give NULL and false instead of 0.
2008-12-13 17:05:14 +01:00
Rémi Duraffort
5d085ee8fc
Use asprintf and check for the return value. (better than malloc+sprintf)
2008-10-29 21:41:14 +01:00
Rémi Denis-Courmont
c26595a844
Fix flawed logic
2008-10-28 19:29:51 +02:00
Geoffroy Couprie
6b06966a93
Fix missing prototype for InterlockedXXcrement64
2008-10-28 18:18:07 +01:00
Derk-Jan Hartman
7089382fa7
libvlc: fix printf warning
2008-10-15 16:29:37 +02:00
Rémi Denis-Courmont
96d708c276
Count message references and get rid of the global message ring buffer
...
Each susbcriber has its own ring buffer already.
2008-10-14 23:47:06 +03:00
Jean-Paul Saman
7f6b4e76bd
Don't start the file logger when syslog is specified.
...
If --syslog is specified on the commandline then vlc loads the logger in file mode first, because --file-logging is the default. This is counter intuitive for users, they expect *only* syslog mode to be active. Note that the logger module can only have one mode active at the sametime, either html, text or syslog.
2008-10-14 15:07:28 +02:00
Rémi Denis-Courmont
b5c9f12635
Make the instance lock static
...
(it's not distinct from the module bank lock)
2008-10-05 16:43:38 +03:00
Rémi Denis-Courmont
b4b1caac5c
Cleanup b_cache_delete
2008-10-05 15:25:54 +03:00
Rémi Denis-Courmont
283b93f9d3
Remove one core dependency upon the module bank
2008-10-05 15:18:50 +03:00
Rémi Denis-Courmont
e398428451
Use static mutexes
2008-10-05 12:39:14 +03:00
Rémi Denis-Courmont
f79f2b1f5b
Remove vlc_threads_(init|end), fix thread-safety on Win32
2008-10-05 10:38:49 +03:00
Geoffroy Couprie
d0102803a0
WinCE: more missing functions fixes
2008-09-30 13:28:03 +02:00
Rémi Denis-Courmont
d699c5c3f6
Remove VLC_OBJECT_LIBVLC
2008-09-28 20:51:36 +03:00
Rémi Denis-Courmont
3485cfbe10
Still allocate unique input item IDs
2008-09-27 12:25:44 +03:00
Rémi Denis-Courmont
cd193be806
Fix a2e0eaa170
on legacy platforms
2008-09-22 19:40:38 +03:00
Geoffroy Couprie
6d914307e5
no vlc_spin_destroy in GC for Win32
2008-09-22 12:50:45 +02:00
Rémi Denis-Courmont
a2e0eaa170
Use OP then fetch, more straight forward with most atomic APIs
2008-09-21 21:49:15 +03:00
Rémi Denis-Courmont
952a943ae2
Use GCC predefines for atomic builtins
2008-09-21 21:38:52 +03:00
Rémi Denis-Courmont
1c6ba8c00b
Atomic builtins are from in GCC 4.1.0 onward.
...
We definitely don't want to use the slow mutex or risky spin locks,
unless we have to.
2008-09-21 21:18:37 +03:00
Jean-Paul Saman
ce241ca11a
Fix GCC error message: undefined reference to `__sync_fetch_and_sub_4`
...
The exact error message is: src/.libs/libvlccore.so: undefined reference to `__sync_fetch_and_sub_4'. According to irc discussion gcc version 4.1.2 (fc8), 4.1.3, 4.2, 4,3.2 and 4.3.2 (archlinux) fail with this error message. This patch fixes it by bumping up the minor number for gcc to 4.
2008-09-21 19:48:24 +02:00
Rémi Denis-Courmont
79bfb76f31
Mingw support for garbage collection
...
(Received no comments on the mailing lists)
2008-09-21 18:59:20 +03:00
Rémi Denis-Courmont
e083d4a76e
Module really does not need to be an object
2008-09-21 16:59:23 +03:00
Rémi Denis-Courmont
acbad93b8b
lower case the module_* functions
2008-09-21 14:59:23 +03:00
Rémi Denis-Courmont
460a78baf1
New type-safe API for modules listing
...
module_list_get(): gets the list of modules
module_list_free(): releases the list
2008-09-21 13:30:48 +03:00
Rémi Denis-Courmont
cc2d7b41b4
GC: assert pf_destructor
2008-09-21 13:30:48 +03:00
Antoine Cellerier
ba6501f308
s/pl_Yield/pl_Hold/
2008-09-20 22:28:40 +02:00
Pierre d'Herbemont
697457bcb6
Make sure vlc_release doesn't destroy a non existent spinlock.
2008-09-20 17:04:20 +02:00
Rémi Denis-Courmont
513a8db0a0
Remove the unsafe input item array
2008-09-20 12:51:18 +03:00
Pierre d'Herbemont
6be1b527c0
vlc_gc: FixOSAtomic usage.
2008-09-20 02:35:43 +02:00
Pierre d'Herbemont
df25be4170
Revert "libvlc: Fix a typo in vlc_gc_object vlc_release(). We need to desstroy when the refcount reaches zero."
...
This reverts commit a42998e547
.
My bad.
2008-09-20 02:33:35 +02:00
Pierre d'Herbemont
a42998e547
libvlc: Fix a typo in vlc_gc_object vlc_release(). We need to desstroy when the refcount reaches zero.
...
(Why do we use uint? We can't track over-releasing?)
(Or we need to init it at 2).
2008-09-20 01:12:01 +02:00
Pierre d'Herbemont
16903a1bbb
Use OSAtomic() as a fallback on Mac OS X.
2008-09-20 01:12:00 +02:00
Derk-Jan Hartman
360eeee37d
libvlc: only use sync_ on GGCs that have it.
...
This fixes [d635ae4ed0
]
2008-09-19 23:40:05 +02:00
Rémi Denis-Courmont
d635ae4ed0
Use GCC atomics
2008-09-19 17:27:56 +03:00
Rémi Denis-Courmont
e3d6b0ba19
GC: thread-safety, and offset independence
2008-09-19 17:27:52 +03:00
Rémi Denis-Courmont
e91e53cb83
Remove the useless announce handler object
...
It merely wrappeded the SAP object.
2008-09-14 10:46:43 +03:00
Antoine Cellerier
a8821cd850
Activate 2 more one instance mode optins with DBus
...
Now that we have a one instance mode with DBus under linux, also make
it possible to use the "one-instance-when-started-from-file" and
"started-from-file" options.
Consider using --started-from-file in the file association scripts,
like what we do in the win32 NSIS script, so that all files opened
through the GUI are enqueued/played in the same instance.
2008-09-14 00:36:09 +02:00
Antoine Cellerier
177d9f10b8
Revert "libvlc does not need an object name"
...
This prevents the libvlc object from having it's name set to
"memcpymmxext" by module_Need.
This reverts commit 15e7d1822c
.
2008-09-06 15:12:46 +02:00
Rémi Denis-Courmont
15e7d1822c
libvlc does not need an object name
2008-09-06 14:24:47 +03:00
Rémi Denis-Courmont
f44cc88bb7
Usage: vlc, not Usage: libvlc
2008-09-06 13:57:04 +03:00
Rémi Denis-Courmont
218c644cf4
Fix warning
2008-09-03 20:44:55 +03:00
Antoine Cellerier
72efa98821
Don't take removed options into account when checking if a module has non advanced help options.
2008-09-02 13:31:17 +02:00
Pierre d'Herbemont
9f9d89824b
libvlc: Add a --verbose-objects option to select which objects should print their msg.
...
Sample usage:
--verbose-objects=+input,-all
2008-09-02 01:39:10 +02:00
Antoine Cellerier
884122a7d6
Accept partial matches with -p <module name> (aka --module ...)
...
Old behavior is still available by prefixing the module name with an
equal sign. For example "vlc -p ts --advanced" returns help on the mux_ts,
vod_rtsp, ts and dvb (aka atsc) modules while "vlc -p '=ts' --advanced"
returns help on the mux_ts (aka ts) and ts modules.
2008-09-02 01:29:38 +02:00
Antoine Cellerier
0c1e905892
When applicable, mention that modules weren't displayed because they only had advanced options.
2008-09-02 01:11:09 +02:00
Antoine Cellerier
072ebbc843
Mention --list and --list-verbose if a vlc -p <string> call didn't find anything.
2008-09-02 01:11:09 +02:00
Antoine Cellerier
bd69812b90
Print the module name in help output (else the user has no way to link the vlc --list output to that of the vlc <insert a help command here> output other than by trying all the modules in --list with vlc -p <module name>)
2008-09-02 01:11:08 +02:00
Antoine Cellerier
c496395814
Fix mistake in 92290c9d
that allowed modules with no basic options (i.e. != advanced) to be shown in vlc -p <something> output with --no-advanced.
2008-09-02 01:11:08 +02:00
Antoine Cellerier
d1e51508ac
Remove trailing spaces.
2008-09-02 01:11:08 +02:00
Rémi Denis-Courmont
135e63dac8
p_module_bank: move out of vlc_global
2008-08-30 15:02:14 +03:00
Rémi Denis-Courmont
0aee55f543
One objects tree per instance rather than per process
2008-08-30 13:32:45 +03:00
Rémi Denis-Courmont
113113d70b
Revert "Win32: show the console (early) in debug builds"
...
Claims that it breaks VLC. If that is the case, I have to beliebe the
Win32 port must have some really serious problem. By the way, this
commit was the only limited yet working way for me to debug on Win32.
This reverts commit 079a3e8fdd
.
2008-08-26 18:22:09 +03:00
Rémi Denis-Courmont
079a3e8fdd
Win32: show the console (early) in debug builds
2008-08-25 19:41:45 +03:00
Rémi Denis-Courmont
f6c0a1a124
libvlccore: remove the threads count
...
Nowadays, it can only deadlock (threads>0) or do nothing (threads==0)
2008-08-17 13:25:59 +03:00
Rémi Denis-Courmont
33112b7797
Fix libvlc private data alignment (untested)
2008-08-13 22:44:53 +03:00
Rémi Denis-Courmont
915ba6e04d
Use %s even if all strings are currently free of percent characters
2008-08-13 21:48:03 +03:00
Rémi Duraffort
e422c3b53a
Do the RIGHT check of asprintf.
2008-08-13 20:07:13 +02:00
Pierre d'Herbemont
65ae2bcd62
libvlccore: Fix a warning about b_daemon on Windows.
2008-08-13 00:57:25 +02:00
Rémi Duraffort
d94a5a026b
Revert "Prefer setenv to putenv (evenmore with local variables)."
...
This commit build compilation on window.
This reverts commit d632ffe1a6
.
2008-08-01 12:17:46 +02:00
Pierre d'Herbemont
10a6bde568
libvlccore: Don't set the priority on first thread on Mac OS X.
...
Let's don't by pass the defaults here. This also fixes an thread error at exit.
2008-07-31 22:57:50 +02:00
Rémi Duraffort
d632ffe1a6
Prefer setenv to putenv (evenmore with local variables).
2008-07-31 17:55:29 +02:00
Christophe Mutricy
d8421cc77d
Install the translations in share on win32 and MacOSX
2008-07-29 00:10:08 +01:00
Rémi Duraffort
494ace96d0
Use pl_Locked and pl_Unlocked
2008-07-21 09:56:10 +02:00
Christophe Mutricy
8134316d83
Fix building when VLM is disable
...
Closes #1718
2008-07-17 20:51:45 +01:00
Pierre d'Herbemont
1a112b8a40
Revert "dejidjei:"
...
This reverts commit 5183d34db7
.
2008-07-09 23:22:30 +02:00
Pierre d'Herbemont
5183d34db7
dejidjei:
2008-07-09 23:06:07 +02:00
Pierre d'Herbemont
915f6a59a6
libvlccore: Make sure vlc_gc_* function correctly assert() on common errors, and de-inline them.
2008-07-08 21:35:43 +02:00
Antoine Cellerier
2265c8f1cc
Help should be localized.
2008-07-07 01:32:49 +02:00
Antoine Cellerier
855b60867e
Fix wording.
2008-07-07 01:31:22 +02:00
Antoine Cellerier
983add6389
Don't print empty sections in the help.
2008-07-07 01:08:10 +02:00
Pierre d'Herbemont
71930a9889
libvlc: Don't print help on module help.
...
It's already in the help.
2008-07-07 01:02:21 +02:00
Pierre d'Herbemont
9ff3595f09
libvlc: Advertise -p and --list in help.
2008-07-07 00:53:47 +02:00
Pierre d'Herbemont
cba23b2940
libvlc: --full-help now displays an exhaustive help.
...
-H has been defaulted to --full-help instead of --longhelp. This means that you don't have to type vlc -H --advanced --help-verbose, to get full VLC help. Additionaly, we now advertise a bit -H in -h or --help.
2008-07-06 21:55:43 +02:00
Rémi Denis-Courmont
d672542925
Fix memory leak
2008-07-06 22:27:40 +03:00
Rémi Denis-Courmont
f348d5638b
Fix warnings
2008-07-06 19:50:25 +03:00
Pierre d'Herbemont
bd5c615970
Revert "libvlc: Add a --verbose-objects option to select which objects should print their msg."
...
This reverts commit 497b59e4fc
.
We are in code freeze.
2008-07-06 15:58:13 +02:00
Pierre d'Herbemont
497b59e4fc
libvlc: Add a --verbose-objects option to select which objects should print their msg.
...
Sample usage:
--verbose-objects=+input,-all
2008-07-06 15:46:17 +02:00
Rémi Denis-Courmont
c7c72691e1
Remove unused variable
2008-07-05 19:46:19 +03:00
Rémi Denis-Courmont
89e10b6c29
pl_Yield(): return NULL when the playlist is gone (or going)
...
This allows using pl_Yield() from video outputs and friends, on
condition that pl_Yield() return value be checked for NULLity.
Should fix #1667 .
2008-07-05 17:29:04 +03:00
Rémi Denis-Courmont
69022122e6
Fix race condition while removing video outputs
2008-07-05 17:27:30 +03:00
Rémi Denis-Courmont
c792a6fd95
Playlist: join safely
2008-07-05 15:18:26 +03:00
Rémi Denis-Courmont
d2ff9ebf3b
interaction: safely join the thread
2008-07-05 15:04:29 +03:00
Antoine Cellerier
2c595f3810
Move intf-popupmenu and video-on-top variables from playlist to libvlc.
...
Should fix assertion errors.
2008-06-28 19:03:26 +02:00
Rémi Denis-Courmont
6465bbf725
libvlc_InternalDestroy: remove dead code
2008-06-24 19:23:41 +03:00
Rémi Denis-Courmont
ace8caefad
LibVLC: wait until all threads are terminated
2008-06-22 15:30:30 +03:00
Rémi Duraffort
57c3ecd229
Remove msg_Err about memory allocation.
...
Fix two potential segfaults.
Cosmetics.
2008-06-19 20:06:55 +02:00
Rémi Denis-Courmont
bd054d3086
Remove services discovery tasks before the playlist
...
I assume nothing can ever try to add a new one once the interfaces have
been destroyed. If not there is a race condition.
2008-06-12 22:01:16 +03:00
Rémi Denis-Courmont
446bfcd5f4
Do not use print colored help if stdout is not a TTY
2008-06-05 20:10:04 +03:00
Rémi Denis-Courmont
031c602819
Playlist takes care of sout-keep, NOT libvlc!
...
Fixes a bunch of crashes at exit.
2008-06-04 21:16:29 +03:00
Rémi Denis-Courmont
ed2a403f13
Remove redumdant b_play code
2008-06-04 19:51:09 +03:00
Rémi Denis-Courmont
a62595b97f
libvlc_InternalAddIntf: remove the other boolean
2008-06-04 19:32:23 +03:00
Rafaël Carré
c75dafab57
Remove support DBus & HAL APIs
...
Acked by DBus code maintainers
2008-06-02 22:10:26 +02:00
Pierre d'Herbemont
3527f69d9f
libvlccore: "intf-show" is now a libvlc var instead of a playlist var. This removes a vout->playlist dependency.
2008-06-01 21:19:23 +02:00
Rafaël Carré
53c7457930
s/vout_Destroy/vlc_object_release/ - A cat is a cat
2008-06-01 19:16:56 +02:00
Pierre d'Herbemont
a717f3bb30
libvlccore: Don't do vout destruction before destroying playlist.
2008-06-01 00:19:11 +02:00
Rémi Denis-Courmont
91bf9631ce
vlc_current_object: remove, vlc_object_get does the same thing
2008-05-31 23:30:58 +03:00
Rémi Denis-Courmont
13a1c6b8b8
Remove VLC_* dead APIs
2008-05-31 22:30:46 +03:00
Rémi Denis-Courmont
d666030b23
libvlc: use vlc_common.h (libvlccore) instead of vlc/vlc.h
2008-05-31 22:10:28 +03:00
Rémi Denis-Courmont
a20c35e902
Move non-deprecated version functions out of the deprecated file
2008-05-31 21:36:40 +03:00
Rémi Denis-Courmont
31013e299b
Remove a bunch of unused deprecated APIs
2008-05-15 21:25:39 +03:00
Rémi Denis-Courmont
1287a64fd6
We also need to check the non "conf::" case. Oops.
2008-05-09 18:00:24 +03:00
Rémi Denis-Courmont
a7e8d944f9
VLC_VariableSet: assume unsafe variable settings. Fixes #1371 .
2008-05-08 23:29:40 +03:00