[Windows] Remove redundant DirectSound error codes
[xbmc.git] / xbmc / playlists / PlayListRAM.cpp
blobc2c0997207a399a328ff4d21c72eed1a0c0d1751
1 /*
2 * Copyright (C) 2024 Team Kodi
3 * This file is part of Kodi - https://kodi.tv
5 * SPDX-License-Identifier: GPL-2.0-or-later
6 * See LICENSES/README.md for more information.
7 */
9 #include "PlayListRAM.h"
11 #include "FileItem.h"
12 #include "PlayListFactory.h"
13 #include "filesystem/File.h"
14 #include "utils/log.h"
16 #include <iostream>
17 #include <string>
19 namespace KODI::PLAYLIST
22 bool CPlayListRAM::LoadData(std::istream& stream)
24 CLog::Log(LOGINFO, "Parsing RAM");
26 std::string strMMS;
27 while (stream.peek() != '\n' && stream.peek() != '\r')
28 strMMS += stream.get();
30 CLog::Log(LOGINFO, "Adding element {}", strMMS);
31 CFileItemPtr newItem(new CFileItem(strMMS));
32 newItem->SetPath(strMMS);
33 Add(newItem);
34 return true;
36 } // namespace KODI::PLAYLIST