summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--frontend.c9
-rw-r--r--frontend.h4
-rw-r--r--frontend_svr.c4
3 files changed, 14 insertions, 3 deletions
diff --git a/frontend.c b/frontend.c
index 72f25ad6..305ca502 100644
--- a/frontend.c
+++ b/frontend.c
@@ -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);
}
diff --git a/frontend.h b/frontend.h
index cba8b840..b08f8891 100644
--- a/frontend.h
+++ b/frontend.h
@@ -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);