fix capmt refcounting if switching to unlocked channel

CRemoteControl::startvideo() and stopvideo() did trigger a resend
of the capmt, which lead to refcounting issues. Fix this by adding
parameters to lock/unlockPlayback to disable the sending of capmt
and set this in start/stopvideo.


Origin commit data
------------------
Branch: ni/coolstream
Commit: e52cc57efb
Author: Stefan Seyfried <seife@tuxbox-git.slipkontur.de>
Date: 2012-07-07 (Sat, 07 Jul 2012)



------------------
This commit was generated by Migit
This commit is contained in:
Stefan Seyfried
2012-07-07 19:50:59 +02:00
parent a904e1032a
commit bfdcc9f800
4 changed files with 48 additions and 18 deletions

View File

@@ -4,6 +4,8 @@
Copyright (C) 2001 Steffen Hehn 'McClean'
Homepage: http://dbox.cyberphoria.org/
(C) 2008-2012 Stefan Seyfried
Kommentar:
Diese GUI wurde von Grund auf neu programmiert und sollte nun vom
@@ -688,7 +690,7 @@ void CRemoteControl::startvideo()
{
is_video_started= true;
//g_Zapit->startPlayBack();
g_Zapit->unlockPlayBack();
g_Zapit->unlockPlayBack(false);
}
}
@@ -700,9 +702,9 @@ void CRemoteControl::stopvideo()
#if HAVE_TRIPLEDRAGON
/* we need stopPlayback to blank video,
lockPlayback prevents it from being inadvertently starting */
g_Zapit->stopPlayBack();
g_Zapit->stopPlayBack(false);
#endif
g_Zapit->lockPlayBack();
g_Zapit->lockPlayBack(false);
}
}