Skip to content

Commit

Permalink
assert if plane sizes couldn't be determined
Browse files Browse the repository at this point in the history
  • Loading branch information
ardera committed Sep 16, 2024
1 parent dc77417 commit 75da2c1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/plugins/gstreamer_video_player/frame.c
Original file line number Diff line number Diff line change
Expand Up @@ -606,9 +606,11 @@ get_plane_infos(GstBuffer *buffer, const GstVideoInfo *info, struct gbm_device *

// We'll just assume the first plane spans the entire buffer.
plane_sizes[0] = gst_buffer_get_size(buffer);
// has_plane_sizes = true;
has_plane_sizes = true;
}

ASSERT_MSG(has_plane_sizes, "Couldn't determine video frame plane sizes.\n");

for (int i = 0; i < n_planes; i++) {
size_t offset_in_memory = 0;
size_t offset_in_buffer = 0;
Expand Down

0 comments on commit 75da2c1

Please sign in to comment.