Skip to content

Commit

Permalink
Fix link in/out is not serialized
Browse files Browse the repository at this point in the history
This causes the xml to be missing the in/out values.
As reported here:
https://forum.shotcut.org/t/pasted-speed-forward-reverse-filter-fails-to-work/43523
  • Loading branch information
bmatherly committed Dec 24, 2024
1 parent 71c4dfd commit 0313873
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/modules/xml/consumer_xml.c
Original file line number Diff line number Diff line change
Expand Up @@ -661,14 +661,20 @@ static void serialise_link(serialise_context context, mlt_service service, xmlNo
xmlNewProp(child, _x("id"), _x(id));
if (mlt_properties_get(properties, "title"))
xmlNewProp(child, _x("title"), _x(mlt_properties_get(properties, "title")));
if (mlt_properties_get_position(properties, "in"))
if (mlt_properties_get_position(properties, "in")) {
xmlNewProp(child,
_x("in"),
_x(mlt_properties_get_time(properties, "in", context->time_format)));
if (mlt_properties_get_position(properties, "out"))
} else if (mlt_properties_get(properties, "in")) {
xmlNewProp(child, _x("in"), _x(mlt_properties_get(properties, "in")));
}
if (mlt_properties_get_position(properties, "out")) {
xmlNewProp(child,
_x("out"),
_x(mlt_properties_get_time(properties, "out", context->time_format)));
} else if (mlt_properties_get(properties, "out")) {
xmlNewProp(child, _x("out"), _x(mlt_properties_get(properties, "out")));
}

serialise_properties(context, properties, child);
serialise_service_filters(context, service, child);
Expand Down

0 comments on commit 0313873

Please sign in to comment.