summaryrefslogtreecommitdiff
path: root/device.c
diff options
context:
space:
mode:
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;