[prev in list] [next in list] [prev in thread] [next in thread]
List: helix-server-cvs
Subject: [Server-cvs] protocol/http httpprot.cpp, 1.132.2.8.4.6, 1.132.2.8.4.7
From: skharkar () helixcommunity ! org
Date: 2013-07-30 20:28:14
[Download RAW message or body]
Update of /cvsroot/server/protocol/http
In directory cvs01.internal.helixcommunity.org:/tmp/cvs-serv30810
Modified Files:
Tag: SERVER_NUCLEUS
httpprot.cpp
Log Message:
Synopsis
========
Returning 412 http error code, if basic ffmpeg and audio codec is ac3 or video is \
mpeg2 and windows 8 or higher.
Reviewer: Chytanya
Branches: SERVER_NUCLEUS
Description
===========
In GetURL call in mediainfo added code to get audio and video format.
To check if it is baisc and plus and determine OS version.
If audio format is ac3 and basic return HXR_PE_PRECONDITION_FAILED.
If video is mpeg2 and windows is win8 or above return HXR_PE_PRECONDITION_FAILED.
Modified http protocol to return 412 on receiving HXR_PE_PRECONDITION_FAILED.
Files Modified
================
/server_rn/nucleus/fs/webapi/Attic/mediainfo.cpp,v
/server_rn/nucleus/fs/webapi/Attic/mediainfo.h,v
/server/protocol/http/httpprot.cpp,v
Tested
======
Tested with URL generation
QA hints
=========
Please test on windos 8 and mpeg2 content
Please test with ac3 content.
Index: httpprot.cpp
===================================================================
RCS file: /cvsroot/server/protocol/http/httpprot.cpp,v
retrieving revision 1.132.2.8.4.6
retrieving revision 1.132.2.8.4.7
diff -u -d -r1.132.2.8.4.6 -r1.132.2.8.4.7
--- httpprot.cpp 22 Jun 2013 01:43:22 -0000 1.132.2.8.4.6
+++ httpprot.cpp 30 Jul 2013 20:28:07 -0000 1.132.2.8.4.7
@@ -1424,6 +1424,11 @@
pMsg = makeResponseMessage("503");
SetStatus(503);
}
+ else if (status == HXR_PE_PRECONDITION_FAILED)
+ {
+ pMsg = makeResponseMessage("412");
+ SetStatus(412);
+ }
else
{
pMsg = makeResponseMessage("404");
_______________________________________________
Server-cvs mailing list
Server-cvs@helixcommunity.org
http://lists.helixcommunity.org/mailman/listinfo/server-cvs
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic