summaryrefslogtreecommitdiff
path: root/device.c
diff options
context:
space:
mode:
authorphintuka <phintuka>2008-01-24 09:31:05 +0000
committerphintuka <phintuka>2008-01-24 09:31:05 +0000
commit5649d38379576ea5b0bf53ce0adf5f1b35b713b8 (patch)
treeeefa8dc84db34770499e8448ac7093ed0f129bfc /device.c
parentfa19e1e74b19c800e42e7969295fd14b0f4cb7d6 (diff)
downloadxineliboutput-5649d38379576ea5b0bf53ce0adf5f1b35b713b8.tar.gz
xineliboutput-5649d38379576ea5b0bf53ce0adf5f1b35b713b8.tar.bz2
Use larger buffers for H.264
Diffstat (limited to 'device.c')
-rw-r--r--device.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/device.c b/device.c
index c1b49be3..46bd29b3 100644
--- a/device.c
+++ b/device.c
@@ -4,7 +4,7 @@
* See the main source file 'xineliboutput.c' for copyright information and
* how to reach the author.
*
- * $Id: device.c,v 1.48 2008-01-10 23:36:06 phelin Exp $
+ * $Id: device.c,v 1.49 2008-01-24 09:31:05 phintuka Exp $
*
*/
@@ -1144,6 +1144,13 @@ int cXinelibDevice::PlayVideo(const uchar *buf, int length)
}
#endif
+ if(IsFrameH264(buf, length)) {
+ LOGMSG("cXinelibDevice::PlayVideo: Detected H.264 video");
+//#warning There are SDTV channels using H.264, so we should really check video size ...
+ ForEach(m_clients, &cXinelibThread::SetHDMode, true);
+ m_StreamStart = false;
+ }
+
int Width, Height;
if(GetVideoSize(buf, length, &Width, &Height)) {
m_StreamStart = false;