X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=decklink_output.cpp;fp=decklink_output.cpp;h=b3c4c85457dedef75fd1a115fa9b82689ac27599;hb=0fc51edaacfad77471a8736c4a7c66d46db9930b;hp=21baf618f7aba57a5bab928ee334c33cff40c6db;hpb=7a074a020aad29723e028acab76b9edfdd6c5223;p=nageru diff --git a/decklink_output.cpp b/decklink_output.cpp index 21baf61..b3c4c85 100644 --- a/decklink_output.cpp +++ b/decklink_output.cpp @@ -181,6 +181,8 @@ void DeckLinkOutput::end_output() void DeckLinkOutput::send_frame(GLuint y_tex, GLuint cbcr_tex, const vector &input_frames, int64_t pts, int64_t duration) { + assert(!should_quit); + unique_ptr frame = move(get_frame()); chroma_subsampler->create_uyvy(y_tex, cbcr_tex, width, height, frame->uyvy_tex); @@ -242,6 +244,8 @@ void DeckLinkOutput::send_audio(int64_t pts, const std::vector &samples) void DeckLinkOutput::wait_for_frame(int64_t pts, int *dropped_frames, int64_t *frame_duration) { + assert(!should_quit); + *dropped_frames = 0; *frame_duration = this->frame_duration;