[vlc-commits] [Git][videolan/libvlcpp][master] Media: update the memory read callback to use ptrdiff_t

Hugo Beauzée-Luyssen (@chouquette) gitlab at videolan.org
Tue Mar 8 07:28:51 UTC 2022



Hugo Beauzée-Luyssen pushed to branch master at VideoLAN / libvlcpp


Commits:
2fe8b1c9 by Steve Lhomme at 2022-03-03T08:17:45+01:00
Media: update the memory read callback to use ptrdiff_t

After https://code.videolan.org/videolan/vlc/-/merge_requests/1512 is merged.

- - - - -


1 changed file:

- vlcpp/Media.hpp


Changes:

=====================================
vlcpp/Media.hpp
=====================================
@@ -242,7 +242,7 @@ public:
      * In particular, the callback should return an error if playback is stopped;
      * if it does not return, then libvlc_media_player_stop() will never return.
      */
-    using ExpectedMediaReadCb = ssize_t(void* opaque, unsigned char* buf, size_t len);
+    using ExpectedMediaReadCb = ptrdiff_t(void* opaque, unsigned char* buf, size_t len);
 
     /**
      * Callback prototype to seek a custom bitstream input media.



View it on GitLab: https://code.videolan.org/videolan/libvlcpp/-/commit/2fe8b1c96c24b828183e1bf72a7781b6b022c5fa

-- 
View it on GitLab: https://code.videolan.org/videolan/libvlcpp/-/commit/2fe8b1c96c24b828183e1bf72a7781b6b022c5fa
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance


More information about the vlc-commits mailing list