Skip to content
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

Open
wants to merge 4 commits into
base: openpht-1.9
Choose a base branch
from
Open

Buildfix #329

wants to merge 4 commits into from

Conversation

brfransen
Copy link

Fixes to errors encountered while building with newer deps.

Copy link
Member

@Risca Risca left a 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");
Copy link
Member

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;
Copy link
Member

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;
Copy link
Member

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;
Copy link
Member

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 ^^

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants