Setting streamer to NULL if TUNE fails should not be necessary

This commit is contained in:
Frank Schmirler 2014-06-23 23:21:56 +02:00
parent 62fa951c61
commit 3e9e7f7de6

View File

@ -1123,7 +1123,6 @@ bool cConnectionVTP::CmdTUNE(char *Opts)
cStreamdevLiveStreamer* liveStreamer = new cStreamdevLiveStreamer(this, chan, prio, m_StreamType); cStreamdevLiveStreamer* liveStreamer = new cStreamdevLiveStreamer(this, chan, prio, m_StreamType);
if ((dev = liveStreamer->GetDevice()) == NULL) { if ((dev = liveStreamer->GetDevice()) == NULL) {
SetStreamer(NULL);
delete liveStreamer; delete liveStreamer;
return Respond(560, "Channel not available (SwitchDevice)"); return Respond(560, "Channel not available (SwitchDevice)");
} }