diff options
Diffstat (limited to 'frontend.c')
| -rw-r--r-- | frontend.c | 11 |
1 files changed, 2 insertions, 9 deletions
@@ -4,7 +4,7 @@ * See the main source file 'xineliboutput.c' for copyright information and * how to reach the author. * - * $Id: frontend.c,v 1.36 2007-06-12 19:28:37 phintuka Exp $ + * $Id: frontend.c,v 1.37 2007-06-21 09:49:57 phintuka Exp $ * */ @@ -190,7 +190,6 @@ cXinelibThread::cXinelibThread(const char *Description) : cThread(Description) m_Frames = 0; m_bEndOfStreamReached = false; m_bPlayingFile = false; - m_FileName = NULL; } cXinelibThread::~cXinelibThread() @@ -200,8 +199,6 @@ cXinelibThread::~cXinelibThread() m_bStopThread = true; if(Active()) Cancel(); - if(m_FileName) - free(m_FileName); } // @@ -674,9 +671,7 @@ bool cXinelibThread::PlayFile(const char *FileName, int Position, if(FileName) { Lock(); - if(m_FileName) - free(m_FileName); - m_FileName = strdup(FileName); + m_FileName = FileName; m_bPlayingFile = true; Unlock(); } @@ -686,8 +681,6 @@ bool cXinelibThread::PlayFile(const char *FileName, int Position, if(!FileName || result != 0) { Lock(); m_bPlayingFile = false; - if(m_FileName) - free(m_FileName); m_FileName = NULL; Unlock(); } else { |
