diff --git a/src/export.c b/src/export.c index 3edb0560b..807b30591 100644 --- a/src/export.c +++ b/src/export.c @@ -35,6 +35,7 @@ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +#include #include #include // for errno, EEXIST #include @@ -340,9 +341,7 @@ static void process_messages(struct exporter *s) { void export_audio(struct exporter *s, struct audio_frame *frame) { - if(!s){ - return; - } + assert(s != NULL); process_messages(s); @@ -355,9 +354,7 @@ void export_audio(struct exporter *s, struct audio_frame *frame) void export_video(struct exporter *s, struct video_frame *frame) { - if(!s){ - return; - } + assert(s != NULL); process_messages(s);