Skip to content
Snippets Groups Projects
  1. Aug 31, 2022
  2. Aug 22, 2022
    • Steve Lhomme's avatar
      config: use libvlc_int_t directly · af21f6a7
      Steve Lhomme authored
      There's no other object that can handle the configuration loading/saving.
      
      We don't need to inherit the options, they can only be in the libvlc_int_t
      object. var_GetNonEmptyString() is equivalent to var_InheritString() in that
      case.
      af21f6a7
  3. Aug 17, 2022
  4. Aug 13, 2022
  5. Aug 12, 2022
  6. Aug 10, 2022
    • Thomas Guillem's avatar
      lib/media_player: add the vlc_player Timer API · 52cda837
      Thomas Guillem authored and Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf committed
      Any LibVLC users could request a timer from the player. This Media Player
      timer has its own event API since:
      
       - It is only used to receive time update points:
      
       - The timer is not locked by the player lock. Indeed the player lock can be
         too "slow" (it can be recursive, it is used by the playlist, and is it held
         when sending all events). So it's not a good idea to hold this lock for
         every frame/sample updates.
      
       - The minimum delay between each updates can be configured: it avoids to flood
         the UI when playing a media file with very high fps or very low audio sample
         size.
      
      The libvlc_media_player_time_point struct is used by timer update
      callbacks. This public struct hold all the informations to interpolate a
      time at a given date. It can be done with the
      libvlc_media_player_time_point_interpolate() helper. That way, it is
      now possible to get the last player time without holding any locks.
      
      There is only one type of timer (for now):
      
      libvlc_media_player_watch_time(): update are sent only when a frame or a
      sample is outputted. Users of this timer should take into account that
      the delay between each updates is not regular and can be up to 1seconds
      (depending of the input). In that case, they should use their own timer
      (from their mainloop) and use
      libvlc_media_player_time_point_interpolate() to get the last time.
      52cda837
  7. Aug 09, 2022
  8. Aug 08, 2022
  9. Aug 07, 2022
    • Niklas Haas's avatar
      vout: display: window: add ICC profile glue · 354f3aae
      Niklas Haas authored and Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen committed
      The window backend triggers a callback of the vout, and the vout
      forwards this to the display using another callback. There are several
      unfortunate layers of glue and indirections in the callchain. In
      particular, we need to persist these ICC profile objects in some layer,
      because of init order between windowing system and the window / vout
      display module itself. I've chosen to add them to `vout_display_cfg_t`
      because it fits well with the other "dynamic window state" properties in
      there.
      
      This approach also allows capable vouts to read directly from the
      allocated ICC profile memory, minimizing the number of memcpys.
      354f3aae
  10. Aug 06, 2022
  11. Aug 03, 2022
  12. Jul 30, 2022
  13. Jul 27, 2022
    • Thomas Guillem's avatar
      libvlc: add bool selected in libvlc_media_player_get_tracklist · 7949712a
      Thomas Guillem authored and Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen committed
      Asked by API users, more convenient than dropping !selected tracks
      ourself.
      7949712a
    • Alexandre Janniaux's avatar
      vlc_fixups: fix ssize_t not being defined · 94386bab
      Alexandre Janniaux authored and Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen committed
      When compiling and not having writev/readv, the following error happens:
      
          make[2]: Entering directory '/home/janniaux/Projects/videolabs/vlc/build-tsan/compat'
            CC       strlcpy.lo
            CC       strnstr.lo
          In file included from ../config.h:952,
                           from ../../compat/strnstr.c:22:
          ../../include/vlc_fixups.h:232:1: error: unknown type name ‘ssize_t’; did you mean ‘size_t’?
            232 | ssize_t readv(int, const struct iovec *, int);
                | ^~~~~~~
                | size_t
          In file included from ../config.h:952,
                           from ../../compat/strlcpy.c:22:
          ../../include/vlc_fixups.h:232:1: error: unknown type name ‘ssize_t’; did you mean ‘size_t’?
            232 | ssize_t readv(int, const struct iovec *, int);
                | ^~~~~~~
                | size_t
          ../../include/vlc_fixups.h:237:1: error: unknown type name ‘ssize_t’; did you mean ‘size_t’?
            237 | ssize_t writev(int, const struct iovec *, int);
                | ^~~~~~~
                | size_t
          ../../include/vlc_fixups.h:237:1: error: unknown type name ‘ssize_t’; did you mean ‘size_t’?
            237 | ssize_t writev(int, const struct iovec *, int);
                | ^~~~~~~
                | size_t
          make[2]: *** [Makefile:1531: strnstr.lo] Error 1
      94386bab
  14. Jul 16, 2022
  15. Jul 15, 2022
  16. Jul 09, 2022
  17. Jul 07, 2022
  18. Jul 03, 2022
  19. Jun 29, 2022
Loading