Commit Graph

440 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 57d834cd27 include vlc_input_item.h instead of vlc_input.h 2019-06-03 16:15:55 +02:00
Steve Lhomme 5363279805 remove the $Id$ in the source code 2019-01-17 12:21:18 +01:00
Rémi Denis-Courmont daa1e516ec http old: rename the module 2018-11-17 16:22:35 +02:00
Rémi Denis-Courmont 71dd2f74b4 http: use transport stream functions 2018-11-11 17:32:01 +02:00
Thomas Guillem 6b96ade7dd stream: replace input_thread_t by input_item_t
This will prevent all demuxers/access/streams to mess with the input_thread_t
state.
2018-07-20 17:23:03 +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 f8872ec589 modules: the "network-caching" is always translated to a vlc_tick_t 2018-07-06 09:53:20 +02:00
Marvin Scholz 84bcad6bc3 access: old http: Do not read all requested data
The old http module Read function would try to read the full amount of
requested data, which would result in a long loading time for some
streams.

Instead return early with the actual amount of data read.

Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
2018-05-15 20:23:27 +03: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
Jean-Baptiste Kempf 6514ed051d HTTP win32: use http-proxy options to setup the proxy
Because win32/netconf is not ready
2018-02-05 19:08:21 +01:00
Marvin Scholz b180121763 access/http: Fix off-by-one in ICY parser
This fixes a off-by-one issue in the ICY parser that would happen in the
case the ICY metadata is unquoted. (StreamTitle=test;).
With empty metadata without ; (StreamTitle=) this would lead to a buffer
over-read.

Credit to Filip Roséen who discovered this issue.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2017-12-13 09:29:04 +01:00
Francois Cartegnie d88d710987 access: http: set min icy meta interval
worst case is 2, 50% bw waste with 0 bytes of meta and
>99.97% with max metadata.
1 is nonsense and would just mean no data stream.
2017-12-10 12:29:08 +01:00
Francois Cartegnie 97dc903329 access: http: fix Icecast
Fix #19251

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
2017-12-10 02:42:04 +01: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 e96bd27d25 old http: fix error handling (fixes #19051) 2017-11-08 18:20:43 +02:00
Rémi Denis-Courmont 9bc4991ebc old http: fix leak on reconnect
The auth state machine must be reinitialized at every connection.

NOTE: There are still (probably, untested) leaks if HTTP response
contains multiple auth-related header lines with the same name.
2017-10-04 20:00:29 +03:00
Zhao Zhili 9b202d9166 old http: remove useless b_continuous member
Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
2017-08-04 18:54:59 +03:00
Rémi Denis-Courmont 268ffc8914 old http: fix sign warning 2017-07-23 17:26:43 +03:00
Rémi Denis-Courmont 5bd22bc827 old http: avoid shadowing 2017-07-23 17:26:43 +03: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
Filip Roséen 9169f39f40 access/http: Control: remove redundant casts
Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
2017-03-22 09:16:49 +02:00
Filip Roséen e2ba9841fb access/http: Control: fix STREAM_GET_SIZE
When a stream-control receives STREAM_GET_SIZE it is supposed to write
the size to an uint64_t. The previous implementation would treat the
passed pointer as int64_t, effectivelly causing undefined-behavior.

These changes fixes that.

Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
2017-03-22 09:16:49 +02:00
Rémi Denis-Courmont b2a504b64f old http: fix proxy credentials copy-paste error 2017-03-05 09:53:33 +02:00
Rémi Denis-Courmont 6ffd6bd588 old http: use vlc_memstream
Send the whole HTTP request in a single TCP frame.
2017-03-04 20:27:10 +02:00
Rémi Denis-Courmont 8234e5423e http (old): reject invalid URL 2016-10-15 16:09:43 +03:00
Rémi Denis-Courmont 1c89583f43 http: use HTTP 1.0 version
With seek support (Range, Content-Range, Accept-Ranges) already
removed, virtual hosting (Host) is the only HTTP 1.1 feature still used
here. Dropping HTTP 1.1 allows removing support for chunked transfer
encoding.

The Host header field is still sent as virtual hosting servers need it
and accept it regardless of the HTTP version.
2016-08-30 21:53:46 +03:00
Rémi Denis-Courmont e2a8224c11 http: remove seek support 2016-08-30 21:53:04 +03:00
Rémi Denis-Courmont c068c56fc1 http: remove cookies support 2016-08-30 21:52:07 +03:00
Rémi Denis-Courmont d03c6ea60d http: remove TLS support 2016-08-30 21:52:07 +03:00
Rémi Denis-Courmont 4489a0487e access: rename access_t.psz_access to psz_name 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 e889024e07 http: allow seeking after failed seek
This is not used in practice, but no point adding code to prevent
something that could work.
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 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 5a2b502bc1 http: inline one function 2016-06-30 22:40:54 +03:00
Rémi Denis-Courmont 414538696b http: remove response size handling
Since "Connection: close" is always used, keeping track of the response
size is totally useless.
2016-06-30 22:39:55 +03:00
Rémi Denis-Courmont e8edd10e59 http: remove MMS redirect 2016-06-30 21:27:46 +03:00
Rémi Denis-Courmont a348dfa815 http: remove write-only b_pace_control 2016-06-30 21:27:46 +03:00
Rémi Denis-Courmont 650903fef6 http: move relevant config items to new plugin 2016-06-30 21:27:46 +03:00
Rémi Denis-Courmont a839f1834c http: fix segmentation fault on error 2016-04-12 20:29:54 +03:00
Thomas Guillem 965f507598 keystore: add a unique memory keystore
This keystore is used to store credentials on memory if no others keystore is
found or if the user doesn't want to store them permanently. This keystore is
owned by libvlc and is shared with all vlc objects. It's released when the
libvlc instance is released.
2016-02-26 10:57:34 +01:00
Rémi Denis-Courmont 64460798fa http: simplify vlc_http_auth cleanup 2016-02-02 22:46:14 +02:00
Rémi Denis-Courmont 7da227d41e http: rename http_auth to vlc_http_auth 2016-02-02 22:46:12 +02:00
Rémi Denis-Courmont f0e6ad4ffe http: remove deflate and gzip support
deflate is handled by the inflate stream filter.
gzip is handled either by the inflate or decomp stream filter.
2016-02-01 23:01:49 +02:00
Rémi Denis-Courmont e5e0eacc6b http: remove useless variable 2016-01-13 23:58:45 +02:00