References
Category:Computer-aided design software
Category:Computer-aided design software for Windows/*
* Copyright (C) 2013-2018 Team Kodi
* This file is part of Kodi -
*
* SPDX-License-Identifier: GPL-2.0-or-later
* See LICENSES/README.md for more information.
*/
#include "SimpleFilePlayer.h"
#include "playlist/PlayListFile.h"
#include "playlists/PlayListPersister.h"
#include "profiles/ProfileManager.h"
#include "utils/URIUtils.h"
#include
#include
#include
#include
#ifdef TARGET_POSIX
#include "platform/linux/DllLinuxStart.h"
#endif
namespace XFILE
{
struct CSimpleFilePlayer::CScopedFile
{
CScopedFile(FILE* file) : m_file(file)
{
}
~CScopedFile()
{
fclose(m_file);
}
FILE* m_file;
};
CSimpleFilePlayer::CSimpleFilePlayer()
: m_playerFile(0)
, m_playerHandle(0)
, m_currentPlaylist(0)
, m_currentPosition(0)
{
m_scopedFile = new CScopedFile(stdout);
m_playerFile = stdout;
m_playerHandle = xbmc_fopen_mmap(m_playerFile, "w+");
}
CSimpleFilePlayer::~CSimpleFilePlayer()
{
m_currentPlaylist = 0;
xbmc_fclose_mmap(m_playerHandle);
m_scopedFile->~CScopedFile();
}
bool CSimpleFile be359ba680
Related links:
Kommentare