Steve Lhomme
b9cf59731f
bonjour: cast to long before converting a NSInteger to a string
As advised in the Apple documentation [^1].
[^1]: https://developer.apple.com/library/archive/documentation/CoreFoundation/Conceptual/CFStrings/formatSpecifiers.html#//apple_ref/doc/uid/TP40004265
10 months ago
Steve Lhomme
7265c07979
service_discovery: add radio module in meson builds
Missing from c6d6c0c596
12 months ago
Zyad Ayad
c6d6c0c596
services_discovery: add Online Radio Browser module
12 months ago
Fatih Uzunoglu
c1ad9addfe
udisks: unref the bus on close
1 year ago
Fatih Uzunoglu
859a3b01d0
udisks: unref the bus on error
Assuming `Close()` is not called if `Open()` returns
an error.
1 year ago
Fatih Uzunoglu
75aa9be12c
udisks: fix heap corruption
1 year ago
Ayush Dey
20fe1d3535
meson: add pipewire support
1 year ago
Steve Lhomme
eacf1bd2b3
upnp: include iphlpapi.h to use local structures
They used to be included by pupnp. They don't use/need it anymore, but we do.
1 year ago
Pierre Lamot
99a167ebc5
udisk: fix crash when sd_bus_open_system fails
p_sys wasn't zero initialized, if the `sd_bus_open_system` call fails, the
cleanup code would try to use the uninitialized `sd_bus` pointer
2 years ago
Steve Lhomme
f785073f21
bonjour: use vlc_sockaddr to read addresses
Instead of local equivalent.
2 years ago
Ayush Dey
eadb563ce1
pulse: revert "pulse: fail if the server is Pipewire"
This reverts commit 78563bdb8a .
2 years ago
Ayush Dey
78563bdb8a
pulse: fail if the server is Pipewire
Similar to the way it has been done in d748929672
2 years ago
Ayush Dey
6d4913720d
pipewire: initial services discovery module
2 years ago
Steve Lhomme
47e528618f
meson: disable some modules only built for desktop on UWP
2 years ago
Steve Lhomme
0858165dad
meson: add the CMake name of some libraries
They can be found with CMake if necessary.
2 years ago
Felix Paul Kühne
3df7b6e118
UPnP: remove SAT>IP channel list fallback
When introducing SAT>IP support, we added a fallback mechanism on
officially published channel lists in case the user neither specified
a custom list nor the used set-top box provided one.
With the end of the SAT>IP Alliance that was dissolved 3 years ago, the
fallback server is no longer available and there will be no replacement
so this feature was removed.
Fixes #28684
2 years ago
Felix Paul Kühne
caa6330357
Makefile.am: disable all modules unsuitable for watchOS
2 years ago
Alaric Senat
241fed315b
upnp: fix exposed directory URLs schemes
Previous implementation generated input item directories with URLs not
compliant with *RFC 3986* in an attempt to keep the original URL while
triggering the UPNP directory acces properly. Here's an exemple of a
previous upnp directory url:
> upnp://http://192.168.1.109:32469/cds?ObjectID=0
The stacking of schemes (`upnp://http://`) is problematic and leads to
most of the validators failing on those generated URLs (see the
referenced issue).
This patch fix the issue by simply replacing the original `http://`
scheme by `upnp://` instead of stacking both. To avoid any potential
regression with some obscure usage forcing https, a shortcut of the
directory access is introduced for https specificaly.
The example above would then be fixed like that:
> upnp://192.168.1.109:32469/cds?ObjectID=0
Potential use-cases with https would instead generate the following:
> upnps://192.168.1.109:32469/cds?ObjectID=0
Refs VLCKit#728
2 years ago
Alaric Senat
44de051a61
upnp: enforce HTTP(S) as the only supported protocols
In preparation for the next commit, explicitly refuse any protocols
that are not supported by libpupnp. It's unclear if it's needed and
pupnp probably already perform this check, but the next commit rely
heavily on the scheme matching "http" or "https" only.
2 years ago
Alaric Senat
bc1d58c065
upnp: implement root MRL forging with std::string
Switching to std::string simplifies the next patch changing the URL
scheme.
2 years ago
Alaric Senat
0cba1475ba
upnp: avoid double URL query start values
This patch completes ac99cee9f3 .
It avoids corrupting URLs with an already present query list.
2 years ago
Alaric Senat
5d5ccbc0fa
upnp: encode the object ID in the exposed URL
Object ID is not supposed to be URI-encoded by default and can be pretty
much any valid string. Since we add it to a valid encoded URL, we need
to encode it to preserve the URL validity.
2 years ago
Alexandre Janniaux
c921bd7700
microdns: use size_t for subscripting
2 years ago
Alexandre Janniaux
4d7903961b
microdns: use ARRAY_SIZE when suited
2 years ago
Alexandre Janniaux
73dd4d7c18
avahi: use size_t for subscripting
2 years ago
Alexandre Janniaux
1842e661a0
avahi: use ARRAY_SIZE when suited
2 years ago
Prince Gupta
f9d948ca03
service_discovery: Add winvolumes module
implement SD_CAT_MYCOMPUTER based service discovery
module on Windows
allows to query volumes mounted on host computer
Ref #28597
2 years ago
Thomas Guillem
79d2ab78ab
sd: sap: fix crash with NULL category
Regression from fd84c2b48b
Fixes #28543
2 years ago
Prince Gupta
049fbf5008
sap: fix deadlock
use vlc_poll implementation, fixes #28528
3 years ago
Thomas Guillem
fd84c2b48b
sd: sap: use AddSubItem() instead of AddItemCat()
AddItemCat() is deprecated and sd categories are not plugged to our
media_source.
This adds one top node for all sap items, sorted by category.
3 years ago
Thomas Guillem
95eed50554
sd: sap: move sys declaration up
3 years ago
Thomas Guillem
b0dafb9778
sd: sap: refactor AddItemCat()
Call this deprecated function in only one place.
3 years ago
Thomas Guillem
f5195886b5
sd: pulse: use AddSubItem() instead of AddItemCat()
AddItemCat() is deprecated and sd categories are not plugged to our
media_source.
This adds one top node for all pulse devices, sorted by card.
3 years ago
Steve Lhomme
3f613a85f5
vlc_threads: move poll() definitions in a separate header
It's using a compat version on Windows/Android/OS2 which is not available
to external modules.
This new header can't be used directly from external modules on Windows.
This makes vlc_threads.h usable from external modules on Windows.
3 years ago
Rémi Denis-Courmont
8d5dfed586
udisks: fix off-by-one
Refs #28486 .
3 years ago
Rémi Denis-Courmont
291ae98355
udisks: use stdc_bit_width()
3 years ago
Thomas Guillem
020e61981d
mtp: decrease log level
3 years ago
Thomas Guillem
a9da92828e
avahi: decrease log level
3 years ago
Thomas Guillem
ce34957a50
upnp: add (future) missing include
vlc_events.h will be removed.
vlc_events.h, that is included by vlc_input_item.h, includes vlc_arrays.h
3 years ago
Steve Lhomme
ec8924b3a9
windrive: use ANSI API's to test drive letters
No need for wide chars for that. The API is supported in UWP [1].
The code was also puttin a WCHAR letter in a char string.
[1] https://learn.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-getdrivetypea
3 years ago
Alaric Senat
ff44904b5a
sap: use `input_item_SetMeta`
Instead of overriding the input metadata directly. This saves an
allocation and fix the previously allocated metadata leak.
3 years ago
Alaric Senat
6fe397b576
sap: fix input item URI leak
`input_item_NewStream` does not take ownership of the allocated string.
3 years ago
Alaric Senat
810186c38a
sap: rework `CreateAnnounce` error path
This fixes leaks on error cases.
3 years ago
Alaric Senat
451a8ce5ba
sout: dlna: switch to the close callback
3 years ago
Steve Lhomme
accf09bc1a
udisks: fix asprintf format for uint64_t
3 years ago
Steve Lhomme
5cd8b2588f
modules: move vlc_charset.h include after winsock including headers
vlc_charset includes windows.h which is supposed to be included *after*
winsock.h/winsock2.h.
3 years ago
Steve Lhomme
6f992b755a
modules: explicitly include windows.h when needed
3 years ago
Steve Lhomme
85344d0cb0
meson: detect zlib as a dependency
The pkg-config or cmake exports should be present.
It will also give us the proper include folder and defines.
3 years ago
Steve Lhomme
cfe74be120
modules: include vlc_configuration.h when using config_Put/GetXXX
3 years ago
Steve Lhomme
91402fdde0
modules: include vlc_configuration.h when using config_ChainParse()
3 years ago