mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-31 01:11:06 +02:00
audioplayer: remove some code; since a156eb2
it's to find in helpers.cpp|h
Origin commit data ------------------ Branch: ni/coolstream Commit:1b0300d149
Author: vanhofen <vanhofen@gmx.de> Date: 2018-08-19 (Sun, 19 Aug 2018) Origin message was: ------------------ - audioplayer: remove some code; sincea156eb2
it's to find in helpers.cpp|h ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit
This commit is contained in:
@@ -118,40 +118,6 @@ void CAudiofileExt::operator=(const CAudiofileExt& src)
|
|||||||
firstChar = src.firstChar;
|
firstChar = src.firstChar;
|
||||||
}
|
}
|
||||||
|
|
||||||
struct MemoryStruct
|
|
||||||
{
|
|
||||||
char *memory;
|
|
||||||
size_t size;
|
|
||||||
};
|
|
||||||
|
|
||||||
static void *myrealloc(void *ptr, size_t size)
|
|
||||||
{
|
|
||||||
/* There might be a realloc() out there that doesn't like reallocing
|
|
||||||
NULL pointers, so we take care of it here */
|
|
||||||
if (ptr)
|
|
||||||
return realloc(ptr, size);
|
|
||||||
else
|
|
||||||
return malloc(size);
|
|
||||||
}
|
|
||||||
|
|
||||||
static size_t WriteMemoryCallback(void *ptr, size_t size, size_t nmemb, void *data)
|
|
||||||
{
|
|
||||||
size_t realsize = size * nmemb;
|
|
||||||
struct MemoryStruct *mem = (struct MemoryStruct *)data;
|
|
||||||
|
|
||||||
mem->memory = (char *)myrealloc(mem->memory, mem->size + realsize + 1);
|
|
||||||
if (mem->memory)
|
|
||||||
{
|
|
||||||
memmove(&(mem->memory[mem->size]), ptr, realsize);
|
|
||||||
mem->size += realsize;
|
|
||||||
mem->memory[mem->size] = 0;
|
|
||||||
}
|
|
||||||
return realsize;
|
|
||||||
}
|
|
||||||
|
|
||||||
// we borrow this from filebrowser
|
|
||||||
extern size_t CurlWriteToString(void *ptr, size_t size, size_t nmemb, void *data);
|
|
||||||
|
|
||||||
CAudioPlayerGui::CAudioPlayerGui(bool inetmode)
|
CAudioPlayerGui::CAudioPlayerGui(bool inetmode)
|
||||||
{
|
{
|
||||||
m_frameBuffer = CFrameBuffer::getInstance();
|
m_frameBuffer = CFrameBuffer::getInstance();
|
||||||
|
Reference in New Issue
Block a user