mirror of
https://github.com/nyanmisaka/mpp.git
synced 2026-01-24 04:20:38 +01:00
[PR #1] [CLOSED] Drop master on /dev/dri/card0 by default #1
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: starred/mpp-nyanmisaka#1
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/nyanmisaka/mpp/pull/1
Author: @benhoff
Created: 11/6/2024
Status: ❌ Closed
Base:
jellyfin-mpp← Head:fix📝 Commits (1)
24977f1drop master on /dev/dri/card0 by default to avoid becoming the drm master📊 Changes
1 file changed (+5 additions, -0 deletions)
View changed files
📝
osal/allocator/allocator_drm.c(+5 -0)📄 Description
This is a really odd edge case, but if you initialize ffmpeg rockchip first and then later try to get the drm master to draw a user interface using another part of your program, you'll be unable to modeset.
This is because drm automatically sets the first file to open as the drm master.
Most people won't run into this issue (or I assume they won't) because they are already likely using a desktop environment (which will already claim the drm master), they are completely running as headless process, and/or they aren't initializing ffmpeg before their UI.
I was lucky enough to have none of those as my setup, so ran head first into this problem.
The other way around this is to open a temporary file to
/dev/dri/card0before callingav_hwframe_ctx_initin your user code. In my experience, you can close the file after theav_hwframe_ctx_init🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.