aboutsummaryrefslogtreecommitdiffstats
path: root/src/DecoderThread.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/DecoderThread.cxx')
-rw-r--r--src/DecoderThread.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/DecoderThread.cxx b/src/DecoderThread.cxx
index 67054cbc9..ac89b54ca 100644
--- a/src/DecoderThread.cxx
+++ b/src/DecoderThread.cxx
@@ -202,10 +202,11 @@ decoder_run_stream_mime_type(struct decoder *decoder, struct input_stream *is,
const struct decoder_plugin *plugin;
unsigned int next = 0;
- if (is->mime == NULL)
+ if (is->mime.empty())
return false;
- while ((plugin = decoder_plugin_from_mime_type(is->mime, next++))) {
+ while ((plugin = decoder_plugin_from_mime_type(is->mime.c_str(),
+ next++))) {
if (plugin->stream_decode == NULL)
continue;