1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
Upstream: https://github.com/mltframework/mlt/commit/db1f3ceff723912c2ff4b6207a3f446f6677e8f8
From db1f3ceff723912c2ff4b6207a3f446f6677e8f8 Mon Sep 17 00:00:00 2001
From: j-b-m <jb@kdenlive.org>
Date: Sun, 2 Apr 2023 18:14:20 +0200
Subject: [PATCH] Fix compilation: parameter type mismatch
* Fix compilation: parameter type mismatch
* Fix incompatible arg
--- a/src/modules/avformat/factory.c
+++ b/src/modules/avformat/factory.c
@@ -31,7 +31,7 @@ extern mlt_filter filter_swresample_init( mlt_profile profile, char *arg );
extern mlt_filter filter_swscale_init( mlt_profile profile, char *arg );
extern mlt_producer producer_avformat_init( mlt_profile profile, const char *service, char *file );
extern mlt_filter filter_avfilter_init( mlt_profile, mlt_service_type, const char*, char* );
-extern mlt_link link_swresample_init( mlt_profile profile, char *arg );
+extern mlt_link link_swresample_init( mlt_profile profile, mlt_service_type, const char *, char * );
// ffmpeg Header files
#include <libavformat/avformat.h>
@@ -94,7 +94,7 @@ static void *create_service( mlt_profile profile, mlt_service_type type, const c
if ( type == mlt_service_filter_type )
return filter_swresample_init( profile, arg );
else if ( type == mlt_service_link_type )
- return link_swresample_init( profile, arg );
+ return link_swresample_init( profile, type, id, arg );
#endif
return NULL;
}
--- a/src/win32/win32.c
+++ b/src/win32/win32.c
@@ -70,7 +70,7 @@ int setenv(const char *name, const char *value, int overwrite)
static int iconv_from_utf8( mlt_properties properties, const char *prop_name, const char *prop_name_out, const char* encoding )
{
- char *text = mlt_properties_get( properties, prop_name );
+ const char *text = mlt_properties_get( properties, prop_name );
int result = 0;
if ( text ) {
@@ -99,7 +99,7 @@ static int iconv_from_utf8( mlt_properties properties, const char *prop_name, co
static int iconv_to_utf8( mlt_properties properties, const char *prop_name, const char *prop_name_out, const char* encoding )
{
- char *text = mlt_properties_get( properties, prop_name );
+ const char *text = mlt_properties_get( properties, prop_name );
int result = 0;
if ( text ) {
--
2.41.0
|