support flutter gstreamer player for android

This commit is contained in:
hpdragon
2022-08-25 10:46:24 +07:00
parent 0bc07eed97
commit d6034e51f8
41 changed files with 5263 additions and 20 deletions
+3 -1
View File
@@ -74,8 +74,10 @@ GstFlowReturn GstPlayer::newSample(GstAppSink *sink, gpointer gSelf) {
self->video_callback_(
(uint8_t*)bufferInfo.data,
video_info.size,
video_info.width,
video_info.height);
video_info.height,
video_info.stride[0]);
gst_buffer_unmap(buffer_, &bufferInfo);
gst_video_frame_unmap(&vframe);