[mythtv-commits] [MythTV/mythtv] 4899e7: MythV4L2M2MContext: Use GetDRMBuffer

Jonas Karlman noreply at github.com
Sun Dec 22 16:17:06 UTC 2024


  Branch: refs/heads/master
  Home:   https://github.com/MythTV/mythtv
  Commit: 4899e785fdbd8037fcb6509eaeb746f673dae04c
      https://github.com/MythTV/mythtv/commit/4899e785fdbd8037fcb6509eaeb746f673dae04c
  Author: Jonas Karlman <jonas at kwiboo.se>
  Date:   2024-12-22 (Sun, 22 Dec 2024)

  Changed paths:
    M mythtv/libs/libmythtv/decoders/mythv4l2m2mcontext.cpp
    M mythtv/libs/libmythtv/decoders/mythv4l2m2mcontext.h

  Log Message:
  -----------
  MythV4L2M2MContext: Use GetDRMBuffer

The FFmpeg internal V4L2RequestDescriptor type is not meant to be used
by applications, instead applications should treat the returned frames
as if a AVDRMFrameDescriptor was returned, as defined by the DRM_PRIME
pix fmt.

Remove the custom implementation of GetRequestBuffer and use the base
GetDRMBuffer function instead.

Signed-off-by: Jonas Karlman <jonas at kwiboo.se>


  Commit: a3bc8c06a4cec86816d27e31e201a636c60cdcac
      https://github.com/MythTV/mythtv/commit/a3bc8c06a4cec86816d27e31e201a636c60cdcac
  Author: Jonas Karlman <jonas at kwiboo.se>
  Date:   2024-12-22 (Sun, 22 Dec 2024)

  Changed paths:
    M mythtv/libs/libmythtv/decoders/mythv4l2m2mcontext.cpp

  Log Message:
  -----------
  MythV4L2M2MContext: Remove unneeded av_hwdevice_ctx_init() call

av_hwdevice_ctx_init() is already called internally by FFmpeg function
av_hwdevice_ctx_create(), and is not meant to be called a second time.

Remove the unneeded av_hwdevice_ctx_init() to simplify the code.

Signed-off-by: Jonas Karlman <jonas at kwiboo.se>


Compare: https://github.com/MythTV/mythtv/compare/07f76b1c7217...a3bc8c06a4ce

To unsubscribe from these emails, change your notification settings at https://github.com/MythTV/mythtv/settings/notifications


More information about the mythtv-commits mailing list