diff options
author | phintuka <phintuka> | 2010-05-18 15:28:34 +0000 |
---|---|---|
committer | phintuka <phintuka> | 2010-05-18 15:28:34 +0000 |
commit | 6755da9cb7723437d557c264afdbc71ab2b321e0 (patch) | |
tree | 3a073a4a577afcacd672414abd12dd7ac7a9c92e | |
parent | a4f393c9751937dbd3b0cfa598fce5a561fe8dd9 (diff) | |
download | xineliboutput-6755da9cb7723437d557c264afdbc71ab2b321e0.tar.gz xineliboutput-6755da9cb7723437d557c264afdbc71ab2b321e0.tar.bz2 |
Store trick speed state for new clients
-rw-r--r-- | frontend.c | 9 | ||||
-rw-r--r-- | frontend.h | 4 | ||||
-rw-r--r-- | frontend_svr.c | 4 |
3 files changed, 14 insertions, 3 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.85 2010-03-15 11:43:26 phintuka Exp $ + * $Id: frontend.c,v 1.86 2010-05-18 15:28:34 phintuka Exp $ * */ @@ -234,6 +234,8 @@ cXinelibThread::cXinelibThread(const char *Description) : cThread(Description) m_StreamPos = 0; m_LastClearPos = 0; m_Frames = 0; + m_TrickSpeed = -1; + m_bTrickSpeedBack = false; m_bEndOfStreamReached = false; m_bPlayingFile = false; m_StatusMonitor = NULL; @@ -275,6 +277,11 @@ void cXinelibThread::TrickSpeed(int Speed, bool Backwards) { TRACEF("cXinelibThread::TrickSpeed"); + Lock(); + m_TrickSpeed = Speed; + m_bTrickSpeedBack = Backwards; + Unlock(); + cString str = cString::sprintf("TRICKSPEED %d%s", Speed, Backwards ? " Backwards" : ""); Xine_Control(str); } @@ -4,7 +4,7 @@ * See the main source file 'xineliboutput.c' for copyright information and * how to reach the author. * - * $Id: frontend.h,v 1.39 2010-03-15 11:43:26 phintuka Exp $ + * $Id: frontend.h,v 1.40 2010-05-18 15:28:34 phintuka Exp $ * */ @@ -142,6 +142,8 @@ class cXinelibThread : public cThread, public cListObject bool m_bNoVideo; bool m_bLiveMode; bool m_bHDMode; + int m_TrickSpeed; + bool m_bTrickSpeedBack; bool m_bEndOfStreamReached; bool m_bPlayingFile; int m_Volume; diff --git a/frontend_svr.c b/frontend_svr.c index b9447ff0..25d88632 100644 --- a/frontend_svr.c +++ b/frontend_svr.c @@ -4,7 +4,7 @@ * See the main source file 'xineliboutput.c' for copyright information and * how to reach the author. * - * $Id: frontend_svr.c,v 1.91 2010-03-14 11:50:51 phintuka Exp $ + * $Id: frontend_svr.c,v 1.92 2010-05-18 15:28:34 phintuka Exp $ * */ @@ -1167,6 +1167,8 @@ void cXinelibServer::Handle_Control_CONFIG(int cli) fd_control[cli].printf("NOVIDEO %d\r\nLIVE %d\r\n", m_bNoVideo?1:0, m_bLiveMode?1:0); + fd_control[cli].printf("TRICKSPEED %d%s", + m_TrickSpeed, m_bTrickSpeedBack ? " Backwards" : ""); SetVolume(m_Volume); |