decoder_thread: close input file
An input_stream_close() call was missing after today's code reorganization.
This commit is contained in:
parent
c440faa94d
commit
9b21152600
@ -257,6 +257,7 @@ decoder_run_file(struct decoder *decoder, const char *path_fs)
|
|||||||
decoder_unlock(dc);
|
decoder_unlock(dc);
|
||||||
} else if (plugin->stream_decode != NULL) {
|
} else if (plugin->stream_decode != NULL) {
|
||||||
struct input_stream input_stream;
|
struct input_stream input_stream;
|
||||||
|
bool success;
|
||||||
|
|
||||||
if (!decoder_input_stream_open(dc, &input_stream,
|
if (!decoder_input_stream_open(dc, &input_stream,
|
||||||
path_fs))
|
path_fs))
|
||||||
@ -264,11 +265,17 @@ decoder_run_file(struct decoder *decoder, const char *path_fs)
|
|||||||
|
|
||||||
decoder_lock(dc);
|
decoder_lock(dc);
|
||||||
|
|
||||||
if (decoder_stream_decode(plugin, decoder,
|
success = decoder_stream_decode(plugin, decoder,
|
||||||
&input_stream))
|
&input_stream);
|
||||||
return true;
|
|
||||||
|
|
||||||
decoder_unlock(dc);
|
decoder_unlock(dc);
|
||||||
|
|
||||||
|
input_stream_close(&input_stream);
|
||||||
|
|
||||||
|
if (success) {
|
||||||
|
decoder_lock(dc);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user