mirror of
https://projects.vdr-developer.org/git/vdr-plugin-streamdev.git
synced 2023-10-10 17:16:51 +00:00
Dropped compatibility with VDR < 1.5.16
This commit is contained in:
@@ -1783,14 +1783,7 @@ bool cConnectionVTP::Respond(int Code, const char *Message, ...)
|
||||
{
|
||||
va_list ap;
|
||||
va_start(ap, Message);
|
||||
#if APIVERSNUM < 10515
|
||||
char *buffer;
|
||||
if (vasprintf(&buffer, Message, ap) < 0)
|
||||
buffer = strdup("???");
|
||||
cString str(buffer, true);
|
||||
#else
|
||||
cString str = cString::sprintf(Message, ap);
|
||||
#endif
|
||||
va_end(ap);
|
||||
|
||||
if (Code >= 0 && m_LastCommand != NULL) {
|
||||
|
Reference in New Issue
Block a user