Commit Graph

53 Commits (615e8ab7980954fa8236f09ba97a9e9b11a01134)

Author SHA1 Message Date
Martin Finkel 615e8ab798 Merge branch 'fix/track-description-iteration' into 'master'
Fix track description iteration

See merge request videolan/vlc-rs!22
2026-09-07 13:38:37 +00:00
Martin Finkel 4b17ac7336 Fix track description traversal 2026-08-31 16:44:18 +02:00
Alaric Senat 832a715d79 libvlc-sys: declare vsnprintf outside the generated block
vsnprintf is a C-runtime symbol, not a libvlc export, so it has no business
sitting in the block of bindings generated from libvlc's headers. It only
ended up there because the Windows link workaround needed a declaration.

Drop it from the allowlist and declare it by hand in lib.rs.
2026-08-27 11:44:17 +02:00
Alaric Senat 90729e2bd4 libvlc-sys: fix cross-platform va_list layout
bindgen spells the log callback's va_list parameter the way the host
that ran it does. The bindings are generated once and compiled
everywhere, so that spelling only happens to be right on the generating
host.
This was alright for most hosts but is fragile on aarch64 where va_list
is a plain 32 bytes struct.

Given we only forward the list to vsnprintf, extracting and simplifying
the cross-platform rust implementation from the unstable std-lib is
cheap and sound. We will just have to re-export the official type once
it's stablilized.
2026-08-25 14:57:31 +02:00
Romain Roffé 34bd7b2988 Use bindgen
binding.rs generation with bindgen is optional.

By default, a pre-generated binding.rs is copied in OUT_DIR. This allows
for example to build on Windows and link against a standard VLC
installation.

Feature "use-bindgen" will trigger binding generation.
2022-02-25 16:05:10 +01:00
Rene Richter 6c4a081099 Add EventManager::detach method 2022-01-26 03:15:14 +00:00
Romain Roffé 6133d47ca7 media: Add add_option() method 2022-01-25 13:30:48 +01:00
Raniz 93560d3e10 Update for Rust 2018 2019-11-25 11:48:12 +01:00
Raniz ab7c27e8cb Merge branch 'master' into vlm-broadcast 2019-11-25 11:43:53 +01:00
Raniz d379d70a1c VLM as a separate module
* Refactored VLM methods into a VLM trait in it's own module
* Added more VLM methods
2019-11-25 11:43:23 +01:00
Raniz cd3b94f83b Add support for VLM events 2019-11-25 11:43:23 +01:00
Raniz 31a5840407 Merge remote-tracking branch '0xpr03/master' 2019-11-25 11:43:23 +01:00
Raniz a5499802ab Add method for adding VODs to VLM 2019-11-25 11:43:22 +01:00
Raniz b13d7ead4b Add methods for handling VLM broadcasts to Instance 2019-11-18 13:49:40 +01:00
Alexandre Janniaux 7e09da35b6 media_list: fix crate path 2019-11-15 18:43:24 +01:00
Alexandre Janniaux 2f066ce170 media_library: fix crate path 2019-11-15 18:43:24 +01:00
Alexandre Janniaux 3061aaa977 video: fix crate path 2019-11-15 18:43:24 +01:00
Alexandre Janniaux 7b60a12911 audio: fix crate path 2019-11-15 18:43:24 +01:00
Alexandre Janniaux 56fc69eb3e media_player: fix whitespace 2019-11-15 18:43:24 +01:00
Alexandre Janniaux 23a16997af media_player: fix crate path 2019-11-15 18:43:24 +01:00
Alexandre Janniaux a1d51ebb7a media: fix whitespace 2019-11-15 18:43:24 +01:00
Alexandre Janniaux b4346a2573 media: fix crate path 2019-11-15 18:43:24 +01:00
Alexandre Janniaux 8ccb60ef9a core: fix whitespaces 2019-11-15 18:43:24 +01:00
Alexandre Janniaux 3dd635a5e8 core: fix crate path 2019-11-15 18:43:24 +01:00
Alexandre Janniaux 092377878c media_player: fix missing dyn 2019-11-15 18:43:24 +01:00
Alexandre Janniaux 4fc958841d core: fix missing dyn 2019-11-15 18:43:24 +01:00
Alexandre Janniaux b18049f978 audio: fix obsolete unnamed parameter 2019-11-15 18:43:24 +01:00
Alexandre Janniaux bde5163367 tools: use ? instead of try 2019-11-15 18:43:24 +01:00
Alexandre Janniaux 5b242e55a3 sys: use absolute crate path for pub use 2019-11-15 18:38:12 +01:00
Alexandre Janniaux 6c4bbf3aa3 lib: fix crate path 2019-11-15 18:38:12 +01:00
Aron Heinecke c37c697d57
Merge branch 'send' 2018-11-25 04:29:15 +01:00
Aron Heinecke 7238e34869
Implement Send to allow for shared state
Signed-off-by: Aron Heinecke <aron.heinecke@t-online.de>
2018-11-25 04:27:36 +01:00
Aron Heinecke 7bb3671a09
Add args functionality to Instance
Signed-off-by: Aron Heinecke <aron.heinecke@t-online.de>
2018-10-31 14:52:08 +01:00
T. Okubo faf6fa7323 Make pointer fields private and add raw() method 2018-06-04 21:52:17 +09:00
T. Okubo 5cde4f36d8 Use String instead of Cow<str> 2018-03-10 14:03:51 +09:00
T. Okubo 8720144735 Make some structs Copy 2018-02-28 21:22:03 +09:00
T. Okubo a8b98d25c2 Use union to represent libVLC struct types 2018-02-27 23:45:31 +09:00
T. Okubo 3d029b0c37 Rename ffi module to sys 2018-02-27 22:52:21 +09:00
T. Okubo ca128f8a96 Use AsRef<Path> for file path 2016-11-05 12:38:52 +09:00
T. Okubo dfd17859ed Unify link attribute 2016-09-29 21:51:50 +09:00
T. Okubo 48d22b29f7 Add get_track_description 2015-12-19 11:23:20 +09:00
T. Okubo 76bd1a2340 Make ffi struct members public 2015-12-19 11:01:52 +09:00
T. Okubo 60268c4547 Add get/set aspect ratio 2015-12-17 22:02:11 +09:00
T. Okubo f95dcd2376 Add some audio control functions as the MediaPlayerAudioEx trait 2015-12-17 21:12:46 +09:00
T. Okubo a0e9f5b41b Add logging callback 2015-12-11 22:20:25 +09:00
T. Okubo 8ec8ec48e2 Add some video control functions as the MediaPlayerVideoEx trait 2015-12-08 21:53:54 +09:00
T. Okubo b376a0de12 Add methods to MediaLibrary 2015-11-30 23:04:45 +09:00
T. Okubo 3eab90b03e Add media_library.rs 2015-11-30 22:58:47 +09:00
T. Okubo efa07191c1 Add methods to MediaList 2015-11-30 22:55:43 +09:00
T. Okubo 32ac5eb472 Add media_list.rs 2015-11-30 22:06:06 +09:00