Skip to content

Commit 9cb0ae4

Browse files
committed
gstreamer video player: fix typo in returning calculated plane size
- return a bool instead, and write plane size to output parameter
1 parent efa730d commit 9cb0ae4

File tree

1 file changed

+2
-1
lines changed
  • src/plugins/gstreamer_video_player

1 file changed

+2
-1
lines changed

src/plugins/gstreamer_video_player/frame.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -517,7 +517,8 @@ static bool calculate_plane_size(const GstVideoInfo *info, int plane_index, size
517517
if (GST_VIDEO_FORMAT_INFO_IS_TILED(info->finfo)) {
518518
guint x_tiles = GST_VIDEO_TILE_X_TILES(info->stride[plane_index]);
519519
guint y_tiles = GST_VIDEO_TILE_Y_TILES(info->stride[plane_index]);
520-
return x_tiles * y_tiles * GST_VIDEO_FORMAT_INFO_TILE_SIZE(info->finfo, plane_index);
520+
*plane_size_out = x_tiles * y_tiles * GST_VIDEO_FORMAT_INFO_TILE_SIZE(info->finfo, plane_index);
521+
return true;
521522
}
522523
#endif
523524

0 commit comments

Comments
 (0)