BugFix update frame in stream after reset

This commit is contained in:
brunoherbelin
2020-11-04 22:22:48 +01:00
parent ce5369a0ef
commit 2124dfc718

View File

@@ -547,7 +547,8 @@ bool Stream::fill_frame(GstBuffer *buf, FrameStatus status)
// always empty frame before filling it again
if ( frame_[write_index_].full ) {
gst_video_frame_unmap(&frame_[write_index_].vframe);
if ( GST_MINI_OBJECT_REFCOUNT_VALUE( &frame_[write_index_].vframe.buffer->mini_object ) > 0)
gst_video_frame_unmap(&frame_[write_index_].vframe);
frame_[write_index_].full = false;
}