Rémi Denis-Courmont
e40f2973b5
rtp/rawvid: use stdc_trailing_zeros()
3 years ago
Rémi Denis-Courmont
2ab31af00a
rtp/mp2v: use stdc_trailing_zeros()
3 years ago
Rémi Denis-Courmont
12c21a94a9
dtv: use stdc_trailing_zeros()
3 years ago
Rémi Denis-Courmont
0fca15d73c
include: remove ad-hoc count_leading_zeros functions
3 years ago
Rémi Denis-Courmont
ea1a53da6c
opengl: use std_ceil_bit()
3 years ago
Rémi Denis-Courmont
291ae98355
udisks: use stdc_bit_width()
3 years ago
Rémi Denis-Courmont
f4ae4633de
hevc: use stdc_bit_width()
3 years ago
Rémi Denis-Courmont
e9a72670fa
lua: use stdc_leading_ones()
3 years ago
Rémi Denis-Courmont
ff4998acc5
ts: use stdc_bit_width()
3 years ago
Rémi Denis-Courmont
1d4a993bb2
cli: use stdc_leading_ones()
3 years ago
Rémi Denis-Courmont
2c2f7782e6
oss: use stdc_bit_width()
3 years ago
Rémi Denis-Courmont
6dccabda26
jack: use stdc_bit_floor()
3 years ago
Rémi Denis-Courmont
a1245addb0
stdbit: use GCC / Clang built-ins where applicable
3 years ago
Steve Lhomme
364543f441
meson: expose fallback <stdbit.h> if absent
Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
3 years ago
Rémi Denis-Courmont
28e16df52e
configure: expose fallback <stdbit.h> if absent
3 years ago
Rémi Denis-Courmont
a7707435a6
compat: add fallback for C23 <stdbit.h>
3 years ago
Alaric Senat
d395e10d48
sout: hls: increase playlist count at creation
Instead of increasing it at each ES addition. The previous behavior was
wrongly incrementing the playlist count when multiple ES were muxed in
the same playlist.
2 years ago
Alaric Senat
82a9de6604
sout: hls: fix double free on error
Variant parsing failure already clears the variant map. Calling
`hls_variant_maps_Destroy()` a second time was trigerring a double free.
2 years ago
Thomas Guillem
97325b0f15
player: fix vlc_player_Start() without effect
vlc_player_Start() could have 0 effects when the input was being deleted
while the user requested to play it again.
2 years ago
Alexandre Janniaux
4df5dbc245
qt: systempalette: use C++ wrapper for vlc_object_create
The C++ wrapper is simpler to write and would initialize C++ objects
correctly, though they are not required here.
2 years ago
Alexandre Janniaux
494ced7bd7
qt: use unique_ptr for compositor
The code is already defending against nullptr since multiple clients can
destroy the pointer, and the compositor might not be allocated in the
situation where Qt is allocated as a dialog provider, so there is no
reason to not use std::unique_ptr here.
Previous commits also ensure that vlc_object_create<>() will correctly
initialize C++ objects, and vlc_object_destroy<>() will correctly
destroy them.
No functional changes.
2 years ago
Alexandre Janniaux
da87c329d2
qt: compositor: fix leak on compositor failure
When a compositor was allocated but its initialization failed, the
pointer would not be returned by the
vlc::CompositorFactory::createCompositor function and the pointer was
leaked.
Fix the following leak:
Indirect leak of 120 byte(s) in 1 object(s) allocated from:
#0 0x7f806a2e2002 in operator new(unsigned long) /usr/src/debug/gcc/gcc/libsanitizer/asan/asan_new_delete.cpp:95
#1 0x7f80550b07b3 in instanciateCompositor<vlc::CompositorX11> ../../../../modules/gui/qt/maininterface/compositor.cpp:45
#2 0x7f80550b59e8 in vlc::CompositorFactory::createCompositor() ../../../../modules/gui/qt/maininterface/compositor.cpp:95
#3 0x7f80546daafa in Thread ../../../../modules/gui/qt/qt.cpp:822
#4 0x7f80688aa9ea (/usr/lib/libc.so.6+0x8c9ea) (BuildId: 8bfe03f6bf9b6a6e2591babd0bbc266837d8f658)
2 years ago
Jeffrey Knockel
9b4a4753ec
swscale: don't map to native-endian formats
Map to formats that produce the same byte order regardless of client
endianness.
2 years ago
Jeffrey Knockel
2ad7165b88
xcb/x11: fix byte order for 24/32 depths
Previously the client used the wrong byte order for these depths when
the server is little-endian.
2 years ago
Fatih Uzunoglu
d6829a7037
qml: adjust shader variable precision in FrostedGlassEffect
2 years ago
Fatih Uzunoglu
37d6c5192c
qml: simplify FrostedGlassEffect and use PartialEffect
2 years ago
Fatih Uzunoglu
555584edce
qml: introduce PartialEffect
2 years ago
Sean McGovern
3a174676a3
welcome to 2024
2 years ago
Prince Gupta
b4b28fcd44
qt: fix cleanup of cache
reverts 018f4890c1
it was not that m_cachedData was deleted (see commit above) but the parent cache
itself was deleted after emitting a signal in its member function
fix: don't instantly clean up the cache in the source when requested
since the requester can be the cache itself.
fixes empty label is not visible in any view
fixes model is always in a loading state
2 years ago
Thomas Guillem
94098c98ed
spu: fix scaled_region_pics leak when rejected
spu_Channel_CleanEntry() is doing:
- Destroying scaled_region_pics vector
- spu_PrerenderCancel()
- subpicture_Delete()
2 years ago
Thomas Guillem
cc83b56a43
opengl: interop: fix string var leak
2 years ago
Claudio Cambra
db7e3d4dad
macosx: Adapt carousel view item view to detail string changes
Signed-off-by: Claudio Cambra <developer@claudiocambra.com>
2 years ago
Claudio Cambra
8fed987c4e
macosx: Adapt home view controller to carousel data source changes
Signed-off-by: Claudio Cambra <developer@claudiocambra.com>
2 years ago
Claudio Cambra
108b884b24
macosx: Adapt VLCLibraryCarouselViewItemView to new VLCLibraryRepresentedItem
Signed-off-by: Claudio Cambra <developer@claudiocambra.com>
2 years ago
Claudio Cambra
9de153ff91
macosx: Rename VLCLibraryVideoCollectionViewContainerViewDataSource to VLCLibraryVideoContainerViewDataSource now that it also serves carousels
Signed-off-by: Claudio Cambra <developer@claudiocambra.com>
2 years ago
Claudio Cambra
96f7e145ad
macosx: Implement presentLibraryItem for VLCLibraryVideoCarouselViewContainerView
Signed-off-by: Claudio Cambra <developer@claudiocambra.com>
2 years ago
Claudio Cambra
c319b5fa1b
macosx: Size VLCLibraryVideoCarouselViewContainerView proportionally to contents
Signed-off-by: Claudio Cambra <developer@claudiocambra.com>
2 years ago
Claudio Cambra
b35e1985ad
macosx: Add specific units for carousel view items
Signed-off-by: Claudio Cambra <developer@claudiocambra.com>
2 years ago
Claudio Cambra
d65c270fe7
macosx: Properly handle progress indicator in VLCLibraryVideoCarouselViewItemView
Signed-off-by: Claudio Cambra <developer@claudiocambra.com>
2 years ago
Claudio Cambra
ac78a5834c
macosx: Make selecting carousel item play its represented item
Signed-off-by: Claudio Cambra <developer@claudiocambra.com>
2 years ago
Claudio Cambra
ceea2ef190
macosx: Add method to play represented item of carousel view item view
Signed-off-by: Claudio Cambra <developer@claudiocambra.com>
2 years ago
Claudio Cambra
ce6cf2f939
macosx: Set selection state for relevant vlclibrarycarouselviewitemview through carousel view delegate
Signed-off-by: Claudio Cambra <developer@claudiocambra.com>
2 years ago
Claudio Cambra
f1bc73cf96
macosx: Add selected propertt to VLCLibraryCarouselViewItemView
Signed-off-by: Claudio Cambra <developer@claudiocambra.com>
2 years ago
Claudio Cambra
5db8544af3
macosx: Properly configure highlightBox for VLCLibraryCarouselViewItemView
Signed-off-by: Claudio Cambra <developer@claudiocambra.com>
2 years ago
Claudio Cambra
13d85c2630
macosx: Improve design of carousel item view
Signed-off-by: Claudio Cambra <developer@claudiocambra.com>
2 years ago
Claudio Cambra
f63a0963de
macosx: Fix leading panning for carousel items in VLCLibraryVideoCarouselViewContainerView
Signed-off-by: Claudio Cambra <developer@claudiocambra.com>
2 years ago
Claudio Cambra
5b6cfe91a0
macosx: Use VLCLibraryCarouselViewItemView in view generation of VLCLibraryVideoCollectionViewContainerViewDataSource
Signed-off-by: Claudio Cambra <developer@claudiocambra.com>
3 years ago
Claudio Cambra
bd3eb9c250
macosx: Add fromNibWithOwner class method to VLCLibraryCarouselViewItemView
Signed-off-by: Claudio Cambra <developer@claudiocambra.com>
3 years ago
Claudio Cambra
560565562e
macosx: Add setting of represented media item in VLCLibraryCarouselViewItemView
Signed-off-by: Claudio Cambra <developer@claudiocambra.com>
3 years ago
Claudio Cambra
c30738b6e4
macosx: Setup carousel view item view correctly on all inits
Signed-off-by: Claudio Cambra <developer@claudiocambra.com>
3 years ago