Skip to content

Commit 0af529c

Browse files
committed
Fix xml-clip producer regression in 1ddb9c6
Also fixes constructing a producer through the factory with a null profile.
1 parent 678193b commit 0af529c

File tree

6 files changed

+11
-6
lines changed

6 files changed

+11
-6
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
cmake_minimum_required(VERSION 3.14...3.31)
22

33
project(MLT
4-
VERSION 7.36.0
4+
VERSION 7.36.1
55
DESCRIPTION "Multimedia Framework"
66
HOMEPAGE_URL "https://www.mltframework.org"
77
LANGUAGES C CXX

NEWS

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
MLT Release Notes
22
-----------------
33

4+
Version 7.36.1
5+
- Fixed construcing a new producer with a null profile.
6+
- Fixed constructing a `xml-clip` profile.
7+
8+
49
Version 7.36.0
510

611
Framework

docs/melt.1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.38.4.
2-
.TH MELT "1" "December 2025" "melt 7.36.0" "User Commands"
2+
.TH MELT "1" "December 2025" "melt 7.36.1" "User Commands"
33
.SH NAME
44
melt \- author, play, and encode multitrack audio/video compositions
55
.SH SYNOPSIS

src/framework/mlt_factory.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ mlt_producer mlt_factory_producer(mlt_profile profile, const char *service, cons
327327
{
328328
mlt_producer obj = NULL;
329329

330-
if (!mlt_profile_is_valid(profile))
330+
if (profile && !mlt_profile_is_valid(profile))
331331
return obj;
332332

333333
// Pick up the default normalizing producer if necessary

src/framework/mlt_version.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828

2929
#define LIBMLT_VERSION_MAJOR 7
3030
#define LIBMLT_VERSION_MINOR 36
31-
#define LIBMLT_VERSION_REVISION 0
31+
#define LIBMLT_VERSION_REVISION 1
3232
#define LIBMLT_VERSION_INT \
3333
((LIBMLT_VERSION_MAJOR << 16) + (LIBMLT_VERSION_MINOR << 8) + LIBMLT_VERSION_REVISION)
3434
#define LIBMLT_VERSION \

src/modules/xml/producer_xml-clip.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* producer_xml-clip.c -- A wrapper for mlt XML in native profile
3-
* Copyright (C) 2024 Meltytech, LLC
3+
* Copyright (C) 2024-2025 Meltytech, LLC
44
*
55
* This library is free software; you can redistribute it and/or
66
* modify it under the terms of the GNU Lesser General Public
@@ -173,7 +173,7 @@ mlt_producer producer_xmlclip_init(mlt_profile profile,
173173
const char *id,
174174
char *arg)
175175
{
176-
mlt_profile native_profile = calloc(1, sizeof(struct mlt_profile_s));
176+
mlt_profile native_profile = mlt_profile_init(NULL);
177177
mlt_producer xml_producer = mlt_factory_producer(native_profile, "xml", arg);
178178
mlt_producer self = mlt_producer_new(native_profile);
179179

0 commit comments

Comments
 (0)