summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorphintuka <phintuka>2010-03-03 16:34:44 +0000
committerphintuka <phintuka>2010-03-03 16:34:44 +0000
commitf7e4ead3af78ff03d0515c82b0f7c36129b0429c (patch)
tree2416841dca2cea6644526e617615db5453338c30
parentb4927f24d8d784670bb9a924de84d9adceb86451 (diff)
downloadxineliboutput-f7e4ead3af78ff03d0515c82b0f7c36129b0429c.tar.gz
xineliboutput-f7e4ead3af78ff03d0515c82b0f7c36129b0429c.tar.bz2
Remember current HD mode for new clients
-rw-r--r--frontend.c4
-rw-r--r--frontend.h5
2 files changed, 6 insertions, 3 deletions
diff --git a/frontend.c b/frontend.c
index ae9c9189..97e64281 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.80 2010-02-24 14:23:21 phintuka Exp $
+ * $Id: frontend.c,v 1.81 2010-03-03 16:34:44 phintuka Exp $
*
*/
@@ -229,6 +229,7 @@ cXinelibThread::cXinelibThread(const char *Description) : cThread(Description)
m_Volume = 255;
m_bReady = false;
m_bNoVideo = true;
+ m_bHDMode = false;
m_bLiveMode = true; /* can't be replaying when there is no output device */
m_StreamPos = 0;
m_LastClearPos = 0;
@@ -775,6 +776,7 @@ void cXinelibThread::Configure(void)
Xine_Control(cString::sprintf("SCR %s %d",
xc.live_mode_sync ? "Sync" : "NoSync",
xc.scr_tuning ? xc.scr_hz : 90000));
+ Xine_Control("HDMODE", m_bHDMode);
Xine_Control("CONFIG END");
}
diff --git a/frontend.h b/frontend.h
index 00ff4086..71e0fd19 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.36 2010-02-03 14:01:42 phintuka Exp $
+ * $Id: frontend.h,v 1.37 2010-03-03 16:34:44 phintuka Exp $
*
*/
@@ -75,7 +75,7 @@ class cXinelibThread : public cThread, public cListObject
virtual int Play_PES(const uchar *buf, int len);
virtual void OsdCmd(void *cmd) = 0;
virtual int64_t GetSTC(void) { return -1; }
- virtual void SetHDMode(bool On) { (void)Xine_Control("HDMODE",On?1:0); };
+ virtual void SetHDMode(bool On) { (void)Xine_Control("HDMODE", m_bHDMode = On); };
virtual void SetHeader(const uchar *data, int length, bool reset = false) {};
// Stream type conversions
@@ -136,6 +136,7 @@ class cXinelibThread : public cThread, public cListObject
bool m_bReady;
bool m_bNoVideo;
bool m_bLiveMode;
+ bool m_bHDMode;
bool m_bEndOfStreamReached;
bool m_bPlayingFile;
int m_Volume;