Skip to content

Commit 1ade137

Browse files
committed
Guard against possible access violation
1 parent 93d3a46 commit 1ade137

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/framework/mlt_service.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,9 @@ mlt_service_type mlt_service_identify(mlt_service self)
180180

181181
int mlt_service_connect_producer(mlt_service self, mlt_service producer, int index)
182182
{
183+
if (!self)
184+
return -1;
185+
183186
int i = 0;
184187

185188
// Get the service base

0 commit comments

Comments
 (0)