mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-11-14 13:28:31 +00:00
FS-10050
This commit is contained in:
1 parent
50072f2ce2
commit
0993835db2
1 file changed
+6
-2
@@ -179,12 +179,16 @@ static void parse_params(chromakey_context_t *context, int start, int argc, char
|
|||||||
while (n > 3 && argv[i]) {
|
while (n > 3 && argv[i]) {
|
||||||
if (!strncasecmp(argv[i], "fg:", 3)) {
|
if (!strncasecmp(argv[i], "fg:", 3)) {
|
||||||
switch_img_free(&context->imgfg);
|
switch_img_free(&context->imgfg);
|
||||||
context->imgfg = switch_img_read_png(argv[i]+3, SWITCH_IMG_FMT_ARGB);
|
if (argv[i]+3) {
|
||||||
|
context->imgfg = switch_img_read_png(argv[i]+3, SWITCH_IMG_FMT_ARGB);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!strncasecmp(argv[i], "bg:", 3)) {
|
if (!strncasecmp(argv[i], "bg:", 3)) {
|
||||||
switch_img_free(&context->imgbg);
|
switch_img_free(&context->imgbg);
|
||||||
context->imgbg = switch_img_read_png(argv[i]+3, SWITCH_IMG_FMT_ARGB);
|
if (argv[i]+3) {
|
||||||
|
context->imgbg = switch_img_read_png(argv[i]+3, SWITCH_IMG_FMT_ARGB);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!strcasecmp(argv[i], "patch")) {
|
if (!strcasecmp(argv[i], "patch")) {
|
||||||
|
|||||||
Reference in new issue
Block a user