 				continue
 			}
 
+			let id = Int(mpd_output_get_id(output))
+
 			let dataTemp = Data(bytesNoCopy: UnsafeMutableRawPointer(mutating: tmpName), count: Int(strlen(tmpName)), deallocator: .none)
 			guard let name = String(data: dataTemp, encoding: .utf8) else
 			{
 				mpd_output_free(output)
 				continue
 			}
-
-			let id = Int(mpd_output_get_id(output))
 
 			let o = AudioOutput(id: id, name: name, enabled: mpd_output_get_enabled(output))
 			ret.append(o)

			{
				metadatas["artist"] = name
			}
		}
		mpd_return_pair(_connection, tmpArtist)
		if (mpd_connection_get_error(_connection) != MPD_ERROR_SUCCESS || mpd_response_finish(_connection) == false)
		{
			Logger.dlog(getLastErrorMessageForConnection())

			{
				metadatas["genre"] = genre
			}
			mpd_return_pair(_connection, tmpGenre)
		}

		if (mpd_connection_get_error(_connection) != MPD_ERROR_SUCCESS || mpd_response_finish(_connection) == false)
		{
			Logger.dlog(getLastErrorMessageForConnection())
