mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2025-02-09 17:42:23 +00:00
gtk4: Don't try to use GL mapped video frames as raw RGB memory
This will fail badly because the memory pointers are actually GL texture IDs, however this case can't really happen in practice so simply assert on this. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/merge_requests/1027>
This commit is contained in:
parent
e8701652e2
commit
8d7ce380c4
1 changed files with 4 additions and 0 deletions
|
@ -156,6 +156,10 @@ impl Frame {
|
|||
gst_ctx,
|
||||
)
|
||||
} else {
|
||||
// This will fail badly if the video frame was actually mapped as GL texture
|
||||
// but this case can't really happen as we only do that if we actually have a
|
||||
// GDK GL context.
|
||||
assert!(self.gst_context.is_none());
|
||||
video_frame_to_memory_texture(self.frame, cached_textures, &mut used_textures)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue