mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-11 18:34:58 +01:00
BugFix update frame in stream after reset
This commit is contained in:
@@ -547,7 +547,8 @@ bool Stream::fill_frame(GstBuffer *buf, FrameStatus status)
|
|||||||
|
|
||||||
// always empty frame before filling it again
|
// always empty frame before filling it again
|
||||||
if ( frame_[write_index_].full ) {
|
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;
|
frame_[write_index_].full = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user