Skip to content
Snippets Groups Projects
  1. Aug 11, 2022
  2. Aug 10, 2022
    • Steve Lhomme's avatar
    • Steve Lhomme's avatar
      messages: fix header copy leak · f4ff18f2
      Steve Lhomme authored
      f4ff18f2
    • 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
    • Steve Lhomme's avatar
      win32: remove forward slashes when opening long pathes · 87b3e7c6
      Steve Lhomme authored
      FindFirstFileExW() doesn't seem to like them. We should normally use proper
      Windows pathes with vlc_opendir(). But this will make it safer if we don't.
      87b3e7c6
    • Steve Lhomme's avatar
      win32: use the proper backslash in Windows pathes · dec06aec
      Steve Lhomme authored
      Although a lot of Windows API's seem to be happy with the mixed slashes that
      we use. The FindFirstFileExW() doesn't seem to like forward slash when allowing
      long pathes to be found.
      
      Fixes #27208
      dec06aec
    • Steve Lhomme's avatar
  3. Aug 09, 2022
  4. Aug 08, 2022
  5. Aug 07, 2022
    • Alex Chernyakov's avatar
      dynamicoverlay: Fix memory leak when updating pictures · 41c1d1a9
      Alex Chernyakov authored and Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf committed
      In exec_DataSharedMem() memory is allocated via the call to picture_New().
      This memory is correctly freed via picture_Release() if an error occurs,
      but if no error occurs and the function proceeds normally, the memory is
      never freed. When the DataSharedMem routine is called repeatedly (e.g.,
      to update a picture continuously), this leak accumulates very quickly.
      41c1d1a9
    • Niklas Haas's avatar
      xcb/window: track and report ICC profile changes · 4823a53b
      Niklas Haas authored and Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen committed
      We need to update the ICC profile either if the window moves to a new
      display, or if the root window atom associated with a given display is
      updated. To this end, we need to start tracking property changes on the
      root window, as well as updating this atom every time the window moves
      to a new display.
      
      Unfortunately, this code again requires one memcpy more than I'd like to
      have there, as a result of xcb not letting me fetch properties into my
      own buffers. If we determine this to be a performance issue later on,
      the straightforward fix would be to make vlc_icc_profile_t refcounted
      with a custom free callback.
      4823a53b
    • Niklas Haas's avatar
      xcb/window: move helper function · 8e88fd24
      Niklas Haas authored and Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen committed
      Needed for RandR-related code in future commit.
      8e88fd24
    • Niklas Haas's avatar
      xcb/window: keep track of displays using RandR · 927db833
      Niklas Haas authored and Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen committed
      This is non-functional on its own, but introduces necessary display
      tracking information that will be useful in the following commit(s),
      like figuring out which display's ICC profile to query for the VLC
      window.
      927db833
    • Niklas Haas's avatar
      vout: libplacebo: add support for display ICC profiles · 690f6335
      Niklas Haas authored and Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen committed
      Pretty straightforward. Rather than wasting cycles computing a checksum
      each frame, just update the signature once per received ICC change
      control event.
      690f6335
Loading