Skip to content

Commit ba141fa

Browse files
committed
review comments
1 parent 0d4a616 commit ba141fa

2 files changed

Lines changed: 4 additions & 5 deletions

File tree

src/modules/openfx/CMakeLists.txt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,6 @@ add_library(mltopenfx MODULE
44
filter_openfx.c
55
)
66

7-
if(MSVC)
8-
9-
endif()
10-
117
add_custom_target(Other_openfx_Files SOURCES
128
filter_openfx.yml
139
)

src/modules/openfx/mlt_openfx.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1156,6 +1156,7 @@ typedef struct
11561156

11571157
static int ofx_slices_proc(int id, int idx, int jobs, void *cookie)
11581158
{
1159+
(void) id; // unused
11591160
OfxSlicesJob *job = (OfxSlicesJob *) cookie;
11601161
#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 201112L
11611162
ofx_thread_index = idx;
@@ -1295,8 +1296,10 @@ static OfxStatus mutexDestroy(const OfxMutexHandle mutex)
12951296
return kOfxStatErrBadHandle;
12961297
OfxMutexImpl *m = (OfxMutexImpl *) mutex;
12971298
int err = pthread_mutex_destroy(&m->mtx);
1299+
if (err)
1300+
return kOfxStatErrBadHandle;
12981301
free(m);
1299-
return err == 0 ? kOfxStatOK : kOfxStatErrBadHandle;
1302+
return kOfxStatOK;
13001303
}
13011304

13021305
static OfxStatus mutexLock(const OfxMutexHandle mutex)

0 commit comments

Comments
 (0)