From patchwork Sat Dec 15 14:48:21 2007 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jose Alberto Reguero X-Patchwork-Id: 12555 Received: from outmailhost.telefonica.net ([213.4.149.242] helo=ctsmtpout4.frontal.correo) by www.linuxtv.org with esmtp (Exim 4.63) (envelope-from ) id 1J3YJx-0005G3-3w for vdr@linuxtv.org; Sat, 15 Dec 2007 15:48:53 +0100 Received: from jar.dominio (80.25.230.35) by ctsmtpout4.frontal.correo (7.2.056.6) (authenticated as jareguero$telefonica.net) id 475E747B000F3BC5 for vdr@linuxtv.org; Sat, 15 Dec 2007 15:48:22 +0100 From: Jose Alberto Reguero To: VDR Mailing List Date: Sat, 15 Dec 2007 15:48:21 +0100 User-Agent: KMail/1.9.6 (enterprise 0.20071123.740460) MIME-Version: 1.0 Message-Id: <200712151548.21587.jareguero@telefonica.net> Subject: [vdr] Fix Pid not available error in the streamdev plugin VDR-VDR connection X-BeenThere: vdr@linuxtv.org X-Mailman-Version: 2.1.9 Precedence: list Reply-To: VDR Mailing List List-Id: VDR Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 15 Dec 2007 14:48:53 -0000 Status: O X-Status: X-Keywords: X-UID: 14836 This patch fix the error "Pid xxx not available" in the streamdev plugin with VDR-VDR connection, that cause not tunning to the channel. The problem is that sometimes, when cConnectionVTP::CmdADDP is called, m_LiveStreamer is NULL, and then return an errorr. m_LiveStreamer became null in cConnectionVTP::CmdABRT that is called from cStreamdevDevice::CloseDvrInt called from cStreamdevDevice::CloseDvr. Jose Alberto Index: server/connectionVTP.c =================================================================== RCS file: /var/cvsroot/streamdev/server/connectionVTP.c,v retrieving revision 1.15 diff -u -r1.15 connectionVTP.c --- server/connectionVTP.c 21 Sep 2007 12:45:31 -0000 1.15 +++ server/connectionVTP.c 15 Dec 2007 14:34:15 -0000 @@ -840,7 +840,8 @@ switch (id) { case siLive: - DELETENULL(m_LiveStreamer); + m_LiveStreamer->Stop(); +// DELETENULL(m_LiveStreamer); DELETENULL(m_LiveSocket); break;