summaryrefslogtreecommitdiff
path: root/command/demux.cpp
diff options
context:
space:
mode:
authorJochen Dolze <vdr@dolze.de>2012-05-17 12:48:45 +0200
committerJochen Dolze <vdr@dolze.de>2012-05-17 12:48:45 +0200
commitf71889cd4de662eb29d706f8659e86d13a076fd2 (patch)
treef2f40415b05ebfaf18c3d39c16796f4b0eab0c21 /command/demux.cpp
parent0942647e18e14cfd5f1ab651da0660618490d834 (diff)
downloadvdr-plugin-markad-f71889cd4de662eb29d706f8659e86d13a076fd2.tar.gz
vdr-plugin-markad-f71889cd4de662eb29d706f8659e86d13a076fd2.tar.bz2
Fixed warnings from cppcheck
Added setup menu entry to prevent deferred shutdown Added many logos from contributors
Diffstat (limited to 'command/demux.cpp')
-rw-r--r--command/demux.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/command/demux.cpp b/command/demux.cpp
index 6593fbf..dfd5693 100644
--- a/command/demux.cpp
+++ b/command/demux.cpp
@@ -67,13 +67,16 @@ void cPaketQueue::Resize(int NewSize, const char *NewName)
}
if (inptr<NewSize)
{
- buffer=(uchar *) realloc(buffer,NewSize+8);
- if (buffer)
+ uchar *tmp=(uchar *) realloc(buffer,NewSize+8);
+ if (tmp)
{
+ buffer=tmp;
maxqueue=NewSize;
}
else
{
+ free(buffer);
+ buffer=NULL;
maxqueue=0;
Clear();
}