Merge "apps/app_echo: Only relay a single video source change frame"

This commit is contained in:
Joshua Colp
2016-11-16 14:59:50 -06:00
committed by Gerrit Code Review
+2 -1
View File
@@ -66,7 +66,8 @@ static int echo_exec(struct ast_channel *chan, const char *data)
f->delivery.tv_sec = 0;
f->delivery.tv_usec = 0;
if (f->frametype == AST_FRAME_CONTROL
&& f->subclass.integer == AST_CONTROL_VIDUPDATE) {
&& f->subclass.integer == AST_CONTROL_VIDUPDATE
&& !fir_sent) {
if (ast_write(chan, f) < 0) {
ast_frfree(f);
goto end;