Steve Lhomme
e52cc89f80
modules: set VLC_MALLOC on strings allocated by a memstream
After vlc_memstream_close() the memstream cannot be used anymore.
2 years ago
Steve Lhomme
02b47bc2e4
core: set VLC_MALLOC on strings allocated by a memstream
After vlc_memstream_close() the memstream cannot be used anymore.
2 years ago
Steve Lhomme
a3749aa6a1
memstream: do nothing when writing a length of 0
2 years ago
Steve Lhomme
932a1c3e9c
webvtt: don't reset empty memstream pointer
The content is later used with vlc_memstream_write. Passing NULL is undefined.
On Windows it uses fwrite which doesn't allow passing NULL [1].
[1] https://learn.microsoft.com/en-us/cpp/c-runtime-library/reference/fwrite
2 years ago
Steve Lhomme
18b08d1e5c
win32/spawn: use a regular string for cmdline
We can handle the memstream locally and exit on error.
2 years ago
Steve Lhomme
b23c4e71f9
win32/spawn: use a regular string for application_name
We only need to free if it was not set to the path parameter.
2 years ago
Steve Lhomme
05761dd358
modules: fix vlc_memstream_close success checks
It doesn't return VLC_SUCCESS but 0 (even though it's the same thing).
2 years ago
Prince Gupta
1fa7526be4
qml: make search field width adaptable
2 years ago
Prince Gupta
e9c189c01d
qml: improve spacing in top banner
2 years ago
Fatih Uzunoglu
3aa2e0cd30
qt: reset invalid item loader when parent id changes in MLBaseModel
2 years ago
Steve Lhomme
ae4942ee29
text_renderer/svg: don't write text if XML was not converted properly
2 years ago
Fatih Uzunoglu
4feb0e3c2e
qml: do not cache artist banner image
2 years ago
Fatih Uzunoglu
597a2be401
qml: disable MainDisplay FrostedGlassEffect blending if background is opaque
2 years ago
Fatih Uzunoglu
ddb6a9daa2
qt: FrostedGlassEffect allow non-opaque bg, disable blending if bg is opaque
2 years ago
Fatih Uzunoglu
d4d2c619c0
qml: enable delayed bindings when the component is completed
2 years ago
Fatih Uzunoglu
3be2ea83b2
qml: major overhaul for player control layout
- Support dynamic width when center is not
available.
- Proper support for height adjustment
- Declarative approach
2 years ago
Fatih Uzunoglu
c2803be399
Revert "qml/ControlLayout: Add the 'contentWidth' property"
This reverts commit 9bea3945b1 .
2 years ago
Fatih Uzunoglu
55099e402a
Revert "qml/ControlLayout: Add the 'alignment' property"
This reverts commit a421045fd7 .
2 years ago
Fatih Uzunoglu
92ffca9b84
Revert "qml/ControlLayout: Add the 'count' alias"
This reverts commit 96e3f57302 .
2 years ago
Fatih Uzunoglu
4af07aead9
Revert "qml/ControlLayout: Update the 'implicitWidth' property"
This reverts commit 44bc4d84b5 .
2 years ago
Fatih Uzunoglu
979681c235
Revert "qml/ControlLayout: Add the 'preferredWidth' support"
This reverts commit 3efc5ce68f .
2 years ago
Fatih Uzunoglu
2bcc6e6357
Revert "qml/ArtworkInfoWidget: Add the 'preferredWidth' property"
This reverts commit aec938f083 .
2 years ago
Fatih Uzunoglu
848b6e216f
Revert "qml/PlayerControlLayout: Update resize and collpasing behavior"
This reverts commit a1f2bda77b .
2 years ago
Fatih Uzunoglu
70732cf365
Revert "qml/PlayerControlLayout: Update the 'layoutSpacing' property"
This reverts commit 72c34ac178 .
2 years ago
Thomas Guillem
10a4528c1e
adummy: implement pause
2 years ago
Thomas Guillem
f2245c9015
adummy: implement aout_TimingReport()
adummy is now the more precise aout module ;)
2 years ago
Thomas Guillem
49c9a0e5ae
adummy: remove unused define
2 years ago
Thomas Guillem
c156bbfdfb
test: player: add an aout module
In order to not rely on adummy behavior.
2 years ago
Thomas Guillem
db677b437c
mock: use 48khz as default audio rate
So that the requested audio_sample_length * rate / CLOCK_FREQ has more
change to be divisible. It's a not issue if that not the case, the
module will use its own sample_length near to the requested one.
2 years ago
Thomas Guillem
8605f410bb
vout_subpictures: lower warning to debug
This log can be systematic for each subtitle, depending on the input.
And spu rendering is working fine despite this warning.
2 years ago
Thomas Guillem
45788e9ea5
vout_subpictures: refactor common code
No functional changes.
2 years ago
Fatih Uzunoglu
6ab048bb1b
qml: allow dropping urls into playlists
2 years ago
Fatih Uzunoglu
8810b7cca1
qt: parse foreign items in MLPlaylistModel::insert()
2 years ago
Fatih Uzunoglu
e2d5314c39
qt: export `vlc::playlist::toMediaList()`
2 years ago
Fatih Uzunoglu
6f882e1255
qml: do not allow every drop in PlaylistListView
2 years ago
Prince Gupta
328563e463
qml: fix background for tracks page list
2 years ago
Thomas Guillem
752e9f4a73
clock: use a struct for ops
3 years ago
Thomas Guillem
5e9747b6db
test: player: also test without master source
Add a new test: test_src_player_monotonic_clock, same than
test_src_player but with a monotonic clock.
But with one restriction on "test_timers", cf. comment.
2 years ago
Thomas Guillem
3f1bf4e4d0
decoder: cancel DecoderWaitUnblock on Flush()
This fixes clock being updated by a point that was decoded just before a flush.
2 years ago
Thomas Guillem
8a967f0de4
decoder: handle potential DecoderWaitUnblock return
If a wait failed (in case of flush for example, cf. next commit), the
current frame should not be displayed.
2 years ago
Thomas Guillem
597400f165
decoder: remove impossible condition
vlc_input_decoder_New() only return a vlc_input_decoder_t with a valid
module.
2 years ago
François Cartegnie
7e65970783
vout: subpicture: try to early remove non renderable spu
4 years ago
Thomas Guillem
28ab04ecb9
vout_subpictures: don't prerender when paused
2 years ago
Thomas Guillem
b4a0da1267
vout_subpictures: fix timings when paused
Fixes #28429
2 years ago
Thomas Guillem
ef576bbb27
aout: fix assert after pause -> flush -> resume
Replace the assert with a if check. 'timing.pause_date' is invalid after
a flush and there is nothing to delay in that case.
Fixes regression from a3ddf46f33
2 years ago
Johannes Kauffmann
dcafd9f3c0
qt: fix remove.svg path
Amends f46bef1676 .
2 years ago
Johannes Kauffmann
06711b16be
qt: fix menus/playlist icon alias
In 68fc976d66 , the filename itself was
updated (adding the ic_ prefix). menus.cpp was also updated, but since
menus.cpp depends on the alias name and not the actual filename, this
was causing the following warnings:
qt.svg: Cannot open file ':/menu/ic_playlist.svg', because: No such file or directory
Thus, update the alias also.
2 years ago
Steve Lhomme
c886d291aa
cmdline: avoid float conversion from constant
3 years ago
Steve Lhomme
89e14f1a03
vout_subpictures: ensure we have enough room for scaled SPU's
2 years ago
Steve Lhomme
11ca3b2ad6
vout_subpictures: ensure there's enough room for scaled pics after update
The subpicture_Update() may add regions so we need to have enough room
to scale each region picture.
2 years ago