From a618dbb537cc9d733707ead56e6b6e7694c72d74 Mon Sep 17 00:00:00 2001 From: ronag Date: Mon, 7 Jan 2013 16:49:21 +0000 Subject: [PATCH] basic_frame/disable_audio: Just forward empty frames. git-svn-id: https://casparcg.svn.sourceforge.net/svnroot/casparcg/server/trunk@3645 362d55ac-95cf-4e76-9f9a-cbaa9c17b72d --- core/producer/frame/basic_frame.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/producer/frame/basic_frame.cpp b/core/producer/frame/basic_frame.cpp index 8a3b23278..ce4f773a1 100644 --- a/core/producer/frame/basic_frame.cpp +++ b/core/producer/frame/basic_frame.cpp @@ -147,6 +147,9 @@ safe_ptr basic_frame::fill_and_key(const safe_ptr& fil safe_ptr disable_audio(const safe_ptr& frame) { + if(frame == basic_frame::empty()) + return frame; + basic_frame frame2 = frame; frame2.get_frame_transform().volume = 0.0; return make_safe(std::move(frame2)); -- 2.39.2