Rémi Denis-Courmont
a3226cf890
thread: remove vlc_mutex_destroy()
7 years ago
Steve Lhomme
4f094f796a
demux: adaptive: use a signaled boolean to test if the thread should stop
Rather than using a cancelation point that may not work on some platforms.
Ref #23591
7 years ago
Francois Cartegnie
e6d79a19b5
demux: adaptive: use single connection manager
7 years ago
Francois Cartegnie
fd6888e1c2
demux: adaptive: use demux relative positions for time and seek
7 years ago
Francois Cartegnie
a2de7e4fe7
demux: adaptive: enable timeshift for live content
7 years ago
Francois Cartegnie
ae99d8cdd0
demux: adaptive: merge controls value updates
7 years ago
Francois Cartegnie
167b3d148b
demux: adaptive: remove getDuration()
7 years ago
Francois Cartegnie
fbb3542c34
demux: adaptive: use mutable keywork on locks
7 years ago
Francois Cartegnie
855a0132c7
demux: adaptive: missing lock
7 years ago
Francois Cartegnie
6ae1fd2d0e
demux: adaptive: enable start without probing all alternatives
7 years ago
Francois Cartegnie
46e5994dac
demux: adaptive: don't try to demux if everything is deselected
can happen without decoders
7 years ago
Francois Cartegnie
b21dbcdecf
demux: adaptive: test single states with isDisabled and isValid
7 years ago
Francois Cartegnie
e0d303ebbb
demux: adaptive: start buffering on demux only
Because of race condition in Init(), the es_out isn't set up
between demux pf_open() & pf_demux() calls and ES selection is
then totally impossible.
Randomly broke streams depending on thread speed & buffering.
7 years ago
Francois Cartegnie
823c06d10e
demux: adaptive: set lang as adaptset property only
7 years ago
Francois Cartegnie
4a2f9f2825
demux: adaptive: fix missing obj for logic debug
7 years ago
Francois Cartegnie
ae68beaea5
demux: adaptive: create shared resources
7 years ago
Francois Cartegnie
00061db7bb
demux: adaptive: add needsUpdate playlist property
8 years ago
Steve Lhomme
929f09bfc0
core: use vlc_tick_t for DEMUX_SET_TIME officially
8 years ago
Steve Lhomme
a58b739d06
core: use vlc_tick_t for DEMUX_GET_LENGTH officially
8 years ago
Steve Lhomme
07666913ef
core: use vlc_tick_t for DEMUX_GET_TIME officially
8 years ago
Steve Lhomme
26fef56c52
core: make DEMUX/STREAM_GET_PTS_DELAY officially a vlc_tick_t
8 years ago
Steve Lhomme
771af133f0
demux:adaptive: replace hardcoded sleep value with TICKS value
8 years ago
Steve Lhomme
62836de287
demux:adaptive: replace hardcoded CLOCK_FREQ multiples by VLC_TICK_FROM_SEC()
Easier to read and more explicit.
8 years ago
Steve Lhomme
e41dac0925
module: replace hardcoded CLOCK_FREQ fractions by VLC_TICK_FROM_MS()
8 years ago
Steve Lhomme
0a2428559d
modules: replace hardcoded CLOCK_FREQ fractions by VLC_TICK_FROM_MS()
8 years ago
Steve Lhomme
ded62a069f
rename VLC_TS_0 to VLC_TICK_0
8 years ago
Steve Lhomme
1f17997348
rename VLC_TS_INVALID to VLC_TICK_INVALID
8 years ago
Steve Lhomme
b4dfbc6283
rename mdate() to vlc_tick_now()
The lua "mdate" remains the same.
8 years ago
Steve Lhomme
8b0c6bb9fa
rename msleep() to vlc_tick_sleep()
8 years ago
Steve Lhomme
ff56c92a5e
rename mtime_t to vlc_tick_t
Keep a copy of vlc_tick_tfor backward compatibility.
8 years ago
Steve Lhomme
466b4a73c5
demux:adaptive: the min/max buffering are mtime_t so pass them down as such
8 years ago
Steve Lhomme
157d23d40c
demux:adaptive: doDemux is given an mtime_t
8 years ago
Francois Cartegnie
7c464570b2
demux: adaptive: prune live streams using resume time, not buffering pcr
otherwise, segments are never available to reactivate a stream
from current playback time
8 years ago
Francois Cartegnie
1388783c7e
demux: adaptive: reactivate stream using playback time, not buffers pcr
8 years ago
Steve Lhomme
178c1a4dfe
modules: fix VLC_TS_INVALID tests
8 years ago
Rémi Denis-Courmont
4b7f53f840
adaptive: remove unused member
This fixes a Clang warning.
9 years ago
Zhao Zhili
c23ae08209
demux: adaptive: buffering faster
Assume a 60 FPS video, each call of demuxer->demux return one frame,
then the delay between each of demuxer->demux should not large than
16.7ms. A 50ms delay makes the buffering level around i_min_buffering.
Signed-off-by: Francois Cartegnie <fcvlcdev@free.fr>
9 years ago
Zhao Zhili
ed25d750a6
demux: adaptive: pass by const reference for compare
Signed-off-by: Francois Cartegnie <fcvlcdev@free.fr>
9 years ago
Zhao Zhili
d444322f1f
demux: adaptive: fix setPosition
If there is no valid streams, setPosition should not return
true/success. This can happen when DEMUX_SET_TIME failed which lead to
all streams disabled, and then try DEMUX_SET_POSITION.
Signed-off-by: Francois Cartegnie <fcvlcdev@free.fr>
9 years ago
Francois Cartegnie
e9219d7fea
demux: adaptive: use cookies jar
Requires an ugly unified reference
pass between abstraction layers :/
refs #9632
9 years ago
Zhao Zhili
784da6be1e
demux: adaptive: fix cancellation during refresh playlist
This patch fixed a crash due to assert failure since mutex is not
unlocked before vlc_mutex_destroy().
Signed-off-by: Francois Cartegnie <fcvlcdev@free.fr>
9 years ago
Zhao Zhili
612174eae4
demux: adaptive: signal buffering state change in both cases
Signed-off-by: Francois Cartegnie <fcvlcdev@free.fr>
9 years ago
Zhao Zhili
c4617ba893
demux: adaptive: fix slow buffering
Signed-off-by: Francois Cartegnie <fcvlcdev@free.fr>
9 years ago
Francois Cartegnie
acd8c161b8
demux: adaptive: add cancelation point while buffering
refs #18612
9 years ago
Francois Cartegnie
9a3bd71a82
demux: adaptive: rename fakeesout->drain
9 years ago
Filip Roséen
8546ff80e0
demux/adaptive: PlaylistManager: prefer static_cast
There is no need to use reinterpret_cast when the source or
destination type is pointer-to-void, static_cast is more accurate (and
safer).
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
9 years ago
Francois Cartegnie
252977e598
demux: adaptive: default logic to nearoptimal
9 years ago
Francois Cartegnie
379f0fe5ea
demux: adaptive: add BOLA/nearoptimal logic
9 years ago
Francois Cartegnie
bc75607f9f
demux: adaptive: always set minimal pts-delay
always starts after min buffering
10 years ago
Francois Cartegnie
5ba9e8807a
demux: adaptive: replace width/height options with maxwidth/height
allows filtering out problematic resolution for a device
10 years ago