From 76417d44464248949e7843eee0d5338a8e0a22ac Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 28 Jan 2013 23:41:45 +0100 Subject: InputStream: use std::string --- src/DecoderThread.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/DecoderThread.cxx') 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; -- cgit v1.2.3