Fix handling of http header processing for better operability with Samsung DTVs #79
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Many Samsung DTVs will not recognize UPnP/DLNA media servers, because they are picky about HTTP imlementation. E.g. they loop until double CRLF is found after HTTP header. If not found, then there is no processing done. -> connection failed.
A snippet out of B series TV:
`
.text:0145DCF0 0A 00 A0 E1 MOV R0, R10 ; haystack
.text:0145DCF4 E8 12 9F E5 LDR R1, =asc_215F5E0 ; "\r\n\r\n"
.text:0145DCF8 52 4C C3 EB BL strstr
.text:0145DCFC 00 00 50 E3 CMP R0, #0
.text:0145DD00 E1 FF FF 0A BEQ loc_145DC8C ; loop until EOF found
.text:0145DD04 0A 00 A0 E1 MOV R0, R10
.text:0145DD08 1F FF FF EB BL _Z15cpParseHTTPRespPc ; cpParseHTTPResp(char *)
`
In addition they send "HTTP/1.0" requests, which need to be handled properly, too.
The proposed patch fixes mentioned issues.
The patch was discussed here:
gerbera/gerbera#111