Commit Graph

90 Commits

Author SHA1 Message Date
Steve Lhomme
3f613a85f5 vlc_threads: move poll() definitions in a separate header
It's using a compat version on Windows/Android/OS2 which is not available
to external modules.

This new header can't be used directly from external modules on Windows.
This makes vlc_threads.h usable from external modules on Windows.
2024-01-30 09:39:00 +00:00
Steve Lhomme
55eba1ae2e modules: include vlc_threads.h when using vlc_savecancel() 2023-04-27 19:44:35 +00:00
Tristan Matthews
bb84763eea access: dv: do not log error on ENOMEM 2023-01-24 00:30:38 +00:00
Steve Lhomme
36017f9c3a modules: add a fancy name to internal threads 2022-05-18 07:52:09 +02:00
Steve Lhomme
b469857dec vlc_threads: remove the thread priority when creating a thread
It is not used in POSIX systems. On other system it probably don't make a
difference anymore, only Windows has actual useful values for
VLC_THREAD_PRIORITY_XXX. The synchronization is more important than having some
threads called more often than others.
2022-04-27 08:16:28 +00:00
Lyndon Brown
6f68f89498 plugins: purge use of set_category()
see e967f81f6a.

note, this does **not** affect cat-based module selection items
(of which there are just three in use by the core), since that
mechanism uses subcats not cats.
2021-12-20 09:45:01 +00:00
Rémi Denis-Courmont
a3226cf890 thread: remove vlc_mutex_destroy() 2020-02-21 19:16:09 +02:00
Steve Lhomme
5363279805 remove the $Id$ in the source code 2019-01-17 12:21:18 +01:00
Steve Lhomme
26fef56c52 core: make DEMUX/STREAM_GET_PTS_DELAY officially a vlc_tick_t 2018-07-06 10:48:19 +02:00
Steve Lhomme
5ef6d13736 modules: the "live-caching" is always translated to a vlc_tick_t 2018-07-06 10:03:49 +02:00
Steve Lhomme
b4dfbc6283 rename mdate() to vlc_tick_now()
The lua "mdate" remains the same.
2018-06-22 13:32:10 +02:00
Romain Vimont
ff2901aff3 core: remove global *_sys_t typedefs
Do not declare *_sys_t typedefs globally in vlc_common.h. Instead,
declare them locally in each module that provides a definition.

This paves the way to move C++ definitions into anonymous namespaces in
order to respect C++ ODR.

The picture_resource_t and sout_stream_id_sys_t typedefs will be handled
separately, since they require specific additional changes.

See #18033

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2018-04-30 14:20:50 +02:00
Rémi Denis-Courmont
bf51e08802 objres: restore malloc() wrapper
Regression from cf4676c1e8.
2017-11-28 18:54:06 +02:00
Thomas Guillem
cf4676c1e8 core: rename vlc_*alloc to vlc_obj_*alloc
In order to avoid confusion with future vlc_alloc.
2017-11-11 17:20:34 +01:00
Rémi Denis-Courmont
e4ba64d291 Remove access_t 2017-07-23 08:55:40 +03:00
Rémi Denis-Courmont
740dd861a4 access: allocate p_sys vlc_malloc/vlc_calloc 2017-06-19 22:48:08 +03:00
Rémi Denis-Courmont
6e1ace8a75 access: make access_t.p_sys void * (refs #17078) 2016-07-21 19:59:24 +03:00
Rémi Denis-Courmont
3e01621dc6 access: remove ACCESS controls, use STREAM
They have been identical for a while.
2016-07-21 19:59:24 +03:00
Rémi Denis-Courmont
da458bc49c access: info.b_eof is always false during probe 2016-07-21 19:59:24 +03:00
Rémi Denis-Courmont
2381c5b860 access: add flag for EOF in pf_block prototype
pf_read() returns 0 to signify EOF, and -1 to signify no data.
pf_block() returns NULL either way. This flag is added for the
distinction.
2016-07-21 19:59:24 +03:00
Rémi Denis-Courmont
f343ca522c Fix use of %p format string specifier
%p is only for pointers to void, not just any type of pointers. Due to
variable arguments, there is no implicit conversion here.
2015-10-31 18:34:47 +02:00
Tristan Matthews
31b18f0c5c access: dv: missing #include 2015-07-07 16:11:19 -04:00
Rémi Denis-Courmont
77964d8f9d dv: remove dead code 2015-07-07 22:30:35 +03:00
Rémi Denis-Courmont
c4199ab677 Remove inconsistently used HAVE_UNISTD_H 2013-12-29 16:15:46 +02:00
Rémi Denis-Courmont
5d2752c206 DV: use vlc_strerror_c() 2013-12-29 15:36:03 +02:00
Rémi Denis-Courmont
26b2eff7cf access: simplify control default case, remove dummy warnings 2013-08-26 20:05:05 +03:00
Rafaël Carré
6d53362001 Use _WIN32 rather than WIN32 (same for WIN64)
http://msdn.microsoft.com/en-us/library/b0084kay(v=vs.80).aspx only
mentions the _ prefixed variable.

gcc will always define the _ prefixed variable, like Visual Studio.
The prefixless one is defined in some language standards, e.g. gnu99
but not c99.
2013-06-05 16:06:10 +02:00
Rémi Denis-Courmont
5270796734 Replace block_New() with block_Alloc() 2012-12-13 23:17:40 +02:00
Jean-Baptiste Kempf
fef270581f LGPL
Re-license almost all the playback modules to LGPLv2.1+ with
authorization from their respective contributors (230+)

This includes:
 - access, codec, packetizers, demux
 - audio filters, audio mixers, audio output
 - video filters, video chroma, video output
 - text renderers
 - XML parser
 - ARM NEON and SSE2 optimisations (mostly for chromas and filters)

Some modules are not concerned:
 - BDA and DShow access modules because Manol Manolov is AWOL
 - Real RTSP, because it is derived from Xine
 - x264 and t140 because they are encoders only
 - DLL Loader, because it is derived from MPlayer
 - DTS packetizer, because Jon Lech Johansen is AWOL
 - Shine and WMAfixed, because they are derived from Rockbox
 - Real demuxer, as it is derived from MPlayer and Wang Bo is AWOL
 - MPC demuxer, as Yavor Doganov is AWOL
 - Tivo demuxer, because it is derived from an MPlayer fork
 - Playlist demuxer, (WPL and ZPL parts missing), because suheaven is AWOL
 - iOS audio output and video display, because author refuses the license change
 - Equalizer and compressor, because Ronald Wright is AWOL
 - Mono, Headphone and Dolby, because author refuses the license change
 - hqdn3d and yadif, because they are from MPlayer/libavfilter
 - remoteosd, because it derives from RealVNC code
 - MMX optimisations, because Ollie Lho, from SiS, is AWOL
 - Rotate, because it depends on GPL motion

Nota Bene:
 - Some modules depend on GPL-only libraries, a LGPL module does not mean
   that the resulting binary module will be LGPL.
   Libraries affected would include liba52, libdvdcss, libdvdnav, libdvdread,
   faad2, libdca, libmad, libmpeg2, libpostproc, SRC, sid, zvbi and probably others.
2012-11-13 16:25:56 +01:00
Rémi Denis-Courmont
a7b2dcf0ee Remove WinCE 2012-09-02 12:22:01 +03:00
Christoph Miebach
42f156e1a0 typo: removing double spaces 2012-08-01 14:10:01 +02:00
Rémi Denis-Courmont
3713ce3df1 Rename access_dv to dv1394 2012-05-10 18:03:35 +03:00
Jean-Baptiste Kempf
16224f6925 DV: check return of vlc_clone 2011-10-31 00:42:18 +01:00
Rémi Denis-Courmont
31ac20b22f Unify (ACCESS|DEMUX)_GET_PTS_DELAY 2011-08-30 21:33:18 +03:00
Laurent Aimar
8dbe5362f1 Converted dv access to vlc_clone().
It also removes useless thread wake up.
2011-05-18 22:31:23 +02:00
Rémi Denis-Courmont
90404acbea Remove useless parameters 2011-02-12 20:50:06 +02:00
Rémi Denis-Courmont
9f8a21b28e DV: remove impossible EAGAIN error on poll() 2011-01-23 17:49:00 +02:00
Rémi Denis-Courmont
f98a66cea0 add_integer: remove callback parameter 2010-10-22 21:10:50 +03:00
Rémi Denis-Courmont
7e765ed139 Remove legacy casts 2010-07-11 15:45:54 +03:00
Rémi Duraffort
a9d0016e1b modules: use the new add_shortcut capability (add multiple shortcuts at a time). 2010-06-12 09:11:15 +02:00
Rémi Denis-Courmont
aba9d5a94b DV: remove useless strdup
This plugin does not use its MRL at all (?!).
2010-05-10 23:31:53 +03:00
Rémi Denis-Courmont
a6d927b07a Remove sys/types.h check
We assume it is present in plenty of places anyway
2010-01-16 14:13:50 +02:00
Rémi Denis-Courmont
e7ee6a9d86 Remove useless <fcntl.h> inclusions 2010-01-11 19:37:21 +02:00
Rémi Denis-Courmont
a52793e924 Remove useless <sys/stat.h> includes 2010-01-11 19:08:42 +02:00
JP Dinger
8f556b7155 Shore up code and remove early returns. 2009-07-14 12:53:44 +02:00
Jean-Paul Saman
e5983d30f8 dv: fix compiler warnings about unused variables.
(cherry picked from commit 31d64379a5706513ee6ed4e440c9e723a9842c9e)

Signed-off-by: Jean-Paul Saman <jean-paul.saman@m2x.nl>
2009-06-25 10:53:37 +02:00
Jean-Paul Saman
486e0fc1d7 dv: destroy mutex after vlc_pthread_join()
(cherry picked from commit f23f5e62dcb29ca9b12a1cac73a00c464dbe6f3d)

Signed-off-by: Jean-Paul Saman <jean-paul.saman@m2x.nl>
2009-06-25 10:53:21 +02:00
Jean-Paul Saman
f77a9a6228 dv: update API to libraw1394 version 2.0.1
Support for the older API has dropped as of now.
Patch by Francois Cartegnie <fcvlcdev at free.fr>

Signed-off-by: Jean-Paul Saman <jpsaman@videolan.org>
2009-06-13 19:33:50 +02:00
JP Dinger
048c897eb3 A couple more obvious missing (int64_t) cast fixes. 2009-05-29 14:44:42 +02:00
Jean-Paul Saman
916d4310d5 dv: cleanup 2009-05-12 12:50:13 +02:00