Skip to content
Snippets Groups Projects
Commit ffb679f7 authored by Matt Jordan's avatar Matt Jordan Committed by Gerrit Code Review
Browse files

Merge "audiohook: Use manipulated frame instead of dropping it."

parents 43173f07 1cc99ba8
Branches
Tags
No related merge requests found
...@@ -1019,13 +1019,16 @@ static struct ast_frame *audio_audiohook_write_list(struct ast_channel *chan, st ...@@ -1019,13 +1019,16 @@ static struct ast_frame *audio_audiohook_write_list(struct ast_channel *chan, st
audiohook_list_set_hook_rate(audiohook_list, audiohook, &internal_sample_rate); audiohook_list_set_hook_rate(audiohook_list, audiohook, &internal_sample_rate);
/* /*
* Feed in frame to manipulation. * Feed in frame to manipulation.
*
* XXX FAILURES ARE IGNORED XXX
* If the manipulation fails then the frame will be returned in its original state.
* Since there are potentially more manipulator callbacks in the list, no action should
* be taken here to exit early.
*/ */
audiohook->manipulate_callback(audiohook, chan, middle_frame, direction); if (!audiohook->manipulate_callback(audiohook, chan, middle_frame, direction)) {
/*
* XXX FAILURES ARE IGNORED XXX
* If the manipulation fails then the frame will be returned in its original state.
* Since there are potentially more manipulator callbacks in the list, no action should
* be taken here to exit early.
*/
middle_frame_manipulated = 1;
}
ast_audiohook_unlock(audiohook); ast_audiohook_unlock(audiohook);
} }
AST_LIST_TRAVERSE_SAFE_END; AST_LIST_TRAVERSE_SAFE_END;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment