Skip to content

Commit

Permalink
fix crash in count producer via xml producer
Browse files Browse the repository at this point in the history
regression in 1d63bd8

The xml consumer was serializing the mlt_producer default "resource"
property value of "<producer>", which the xml producer would prepend
with a root path. The loader producer would append the resource value to
the service name delimited by a colon. That was then split and sent to
the count producer's init function as an invalid argument to use for the
factory producer.
  • Loading branch information
ddennedy committed Apr 21, 2023
1 parent f1be13c commit 67d5efd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/modules/plus/producer_count.c
Original file line number Diff line number Diff line change
Expand Up @@ -645,8 +645,9 @@ mlt_producer producer_count_init(mlt_profile profile,
mlt_properties_set(properties, "sound", "none");
mlt_properties_set(properties, "background", "clock");
mlt_properties_set(properties, "drop", "0");
mlt_properties_clear(properties, "resource");
// Let the arg specify the producer to use with the factory, e.g. loader-nogl
if (arg && strcmp(arg, "") && strcmp(arg, "<producer>"))
if (arg && strcmp(arg, ""))
mlt_properties_set(properties, FACTORY_PRODUCER, arg);

// Callback registration
Expand Down

0 comments on commit 67d5efd

Please sign in to comment.