-
Notifications
You must be signed in to change notification settings - Fork 110
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Buildfix #329
base: openpht-1.9
Are you sure you want to change the base?
Buildfix #329
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Apart from the missing headerValues
, it looks good to me. Haven't tested building or running it. Just did a quick scan
@@ -99,8 +99,7 @@ int CWebServer::AskForAuthentication(struct MHD_Connection *connection) | |||
return MHD_NO; | |||
} | |||
|
|||
ret = MHD_add_response_header(response, MHD_HTTP_HEADER_WWW_AUTHENTICATE, "Basic realm=XBMC"); | |||
ret |= MHD_add_response_header(response, MHD_HTTP_HEADER_CONNECTION, "close"); | |||
ret = MHD_add_response_header(response, MHD_HTTP_HEADER_CONNECTION, "close"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't need "Basic realm=XBMC"
header?
|
||
return MHD_get_connection_values(connection, kind, FillArgumentMap, &headerValues); | ||
return MHD_YES; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't see headerValues
being populated any more. This looks like a bug
|
||
return MHD_get_connection_values(connection, kind, FillArgumentMultiMap, &headerValues); | ||
return MHD_YES; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here: I don't see headerValues
being populated
@@ -518,7 +518,7 @@ bool CMythFile::SkipNext() | |||
{ | |||
HandleEvents(); | |||
if(m_recorder) | |||
return m_dll->recorder_is_recording(m_recorder) > 0; | |||
return m_dll->recorder_is_recording(m_recorder) > (void *)0; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've always preferred the implicit conversion of pointers to boolean. E.g.;
return !!m_dll->recorder_is_recording(m_recorder);
or
if (CGUIDialogNumeric::ShowAndGetTime(time, heading ? heading : g_localizeStrings.Get(21420)))
but this works too ^^
Fixes to errors encountered while building with newer deps.