fix segfault when no mimeType in a stream
git-svn-id: https://svn.musicpd.org/mpd/trunk@1269 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
parent
aa2d56c81c
commit
9fc4e67fef
@ -51,6 +51,8 @@ InputPlugin * getInputPluginFromMimeType(char * mimeType) {
|
||||
ListNode * node = inputPlugin_list->firstNode;
|
||||
InputPlugin * plugin = NULL;
|
||||
|
||||
if(mimeType == NULL) return NULL;
|
||||
|
||||
while(node != NULL) {
|
||||
plugin = node->data;
|
||||
if(stringFoundInStringArray(plugin->mimeTypes, mimeType)) {
|
||||
|
Loading…
Reference in New Issue
Block a user