Skip to content

Commit

Permalink
Issue #9: explicitly resetting Epiphan SDK frame buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
dzhoshkun committed Apr 16, 2019
1 parent f844a45 commit 160e6b1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/epiphansdk/epiphansdk_video_source.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ VideoSourceEpiphanSDK::VideoSourceEpiphanSDK(
, _flags(0)
, _daemon(nullptr)
, _bgra_data(nullptr)
, _buffer(nullptr)
{
FrmGrab_Init();

Expand Down Expand Up @@ -120,6 +121,7 @@ bool VideoSourceEpiphanSDK::get_frame(VideoFrame & frame)
frame_width, frame_height
);
FrmGrab_Release(_frame_grabber, _buffer);
_buffer = nullptr;
return true;
}
else
Expand Down

0 comments on commit 160e6b1

Please sign in to comment.