Commit Graph

43 Commits

Author SHA1 Message Date
Rémi Denis-Courmont cc129a71d7 Remove old mail address from sources 2019-09-04 22:11:04 +03:00
Thomas Guillem ee4afd6821 remove unused #include <vlc_input.h> 2019-06-03 16:15:55 +02:00
Rémi Denis-Courmont a09d3a23c2 mtp: avoid integer to pointer conversion 2018-11-20 21:52:18 +02: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 416913eb01 modules: the "file-caching" is always translated to a vlc_tick_t 2018-07-06 09:57:46 +02:00
Rémi Denis-Courmont e4ba64d291 Remove access_t 2017-07-23 08:55:40 +03:00
Rémi Denis-Courmont 40606d22bf mtp: remove redundant casts 2017-04-19 20:46:56 +03:00
Rémi Denis-Courmont 502e503e6e mtp: use a temporary file descriptor
This fixes insecure use of tempnam(), fixes a potential file leak onto
the filesystem and simplifies the code.
2017-02-25 10:08:46 +02:00
Rémi Denis-Courmont 79877893c3 mtp: do not clobber access_t.psz_filepath or leak temporary file
Do not clobber access_t.psz_filepath for no reasons.

Delete the temporary file right after it is opened to minimize the risk
of leaking it onto the filesystem. Also do not leak it if open() fails.
2017-02-21 23:04:55 +02:00
Rémi Denis-Courmont bf1e66de6b mtp: remove useless allocation and fix callbacks init order 2017-02-21 23:00:53 +02: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 de280a5d11 access: set EOF implicitly when read returns 0 2016-07-21 19:59:24 +03:00
Rémi Denis-Courmont 616a010c7f access: reset EOF implicitly on succesful seek 2016-07-21 19:59:24 +03:00
Rémi Denis-Courmont cc6267ceb5 access: use void pointer for pf_read callback
This matches the stream_t.pf_read convention.
2016-07-20 22:54:50 +03:00
Rémi Denis-Courmont 8f2e1e57cf Use vlc_close() 2016-04-22 00:11:43 +03:00
Thomas Guillem 183d5cda47 dialog: use new API 2016-02-04 15:03:58 +01:00
Jean-Baptiste Kempf 5dafc001bb Modules: Remove tabs in source code 2015-11-05 10:05:20 +01:00
Rémi Denis-Courmont fbf85e3da7 access: remove write-only info.i_pos usage 2015-09-02 20:10:35 +03:00
Rémi Denis-Courmont f0985a7a13 mtp: pass error from lseek() 2014-08-18 21:00:50 +03:00
Rémi Denis-Courmont ae0bd671c1 MTP: use vlc_strerror() & 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
Rémi Denis-Courmont 8f8ff66973 access: info.i_size -> control(ACCESS_GET_SIZE) 2013-07-21 16:15:17 +03:00
Rémi Denis-Courmont f9053346c9 mtp: remove write-only datum 2013-07-21 15:55:17 +03:00
Rémi Denis-Courmont 3fd2e22de4 mtp: do not turn off caching (refs #8446) 2013-04-17 20:05:08 +03:00
Rémi Denis-Courmont 10927263be mtp: redundant close-on-exec code
(vlc_open() takes care of that)
2013-04-17 20:02:41 +03:00
Rémi Denis-Courmont 15bc6f28f8 Useless #include <poll.h> 2013-04-09 22:07:17 +03: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 75d005cf30 Remove inconsistently used check for <sys/stat.h> 2012-01-27 23:31:49 +02:00
Rémi Denis-Courmont 2f1bcf5dc3 Remove inconsistently used check for <fcntl.h> 2012-01-27 23:31:49 +02:00
Rémi Denis-Courmont 032a234740 Include system headers before VLC headers
This fixes some problems when the system or VLC play evil tricks with
the preprocessor. (Only files including sys/stat.h are concerned with
this commit. I did not fix all files.)
2012-01-27 23:31:48 +02:00
Rémi Denis-Courmont 31ac20b22f Unify (ACCESS|DEMUX)_GET_PTS_DELAY 2011-08-30 21:33:18 +03:00
Ilkka Ollakka 664218734b file-access (+vdr,mtp): give error message also in Fatal dialog 2011-08-29 16:37:19 +03:00
Rémi Denis-Courmont 6d4bc50f38 Rename access_t.psz_path to psz_location 2010-05-10 23:31:57 +03:00
Rémi Denis-Courmont 370b6cbb30 Use file path instead of URL where appropriate 2010-05-10 23:31:54 +03: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
Laurent Aimar 2e847d8484 Used uint64_t for access_t::info.i_size/i_pos and access_t::pf_seek(). 2010-01-22 00:18:34 +01: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 ff1dbb489a Remove dummy utf8_open() mode parameter in absence of O_CREAT flag 2009-08-15 21:25:21 +03:00
Rémi Denis-Courmont 946a8e91e1 Fix format security warnings (fixes: #2857)
(cherry picked from commit d323c4eeedd835ce126579c6131a7919255b76c1)

Conflicts:

	modules/control/hotkeys.c

Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
2009-06-27 17:51:05 +03:00
Rémi Denis-Courmont cf09f019ea Use dialog_Fatal, fix a bunch (but not all) interaction crashes 2009-03-05 22:28:03 +02:00
Fabio Ritrovato 7f04d5a370 GSoC: MTP Devices initial release
I have modified the original author patch to fix:
- vlc_cancelrestore (mtp).
- libmtp initialisation (race condition).

Signed-off-by: Laurent Aimar <fenrir@videolan.org>
2009-02-11 23:28:06 +01:00