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

[cleanup] silence casts away qualifiers warnings #14192

Merged
merged 18 commits into from Jul 21, 2018
Merged
Changes from 1 commit
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
ed1581d
[network] use std::string instead of char* for CHttpResponse::Create
Rechi Jul 21, 2018
f1a8412
[cleanup][xbmc] silence casts away qualifiers warning
Rechi Jul 21, 2018
b2ebaf0
[cleanup][addons] silence casts away qualifiers warnings
Rechi Jul 21, 2018
b8f045e
[cleanup][cdrip] silence casts away qualifiers warnings
Rechi Jul 21, 2018
2eeee58
[cleanup][AudioEngine] silence casts away qualifiers warnings
Rechi Jul 21, 2018
5d211d1
[cleanup][DllLoader] silence casts away qualifiers warnings
Rechi Jul 21, 2018
ec7b1b7
[cleanup][VideoPlayer] silence casts away qualifiers warnings
Rechi Jul 21, 2018
44e1677
[cleanup][dbwrappers] silence casts away qualifiers warnings
Rechi Jul 21, 2018
4d2db3b
[cleanup][filesystem] silence casts away qualifiers warnings
Rechi Jul 21, 2018
ff10a43
[cleanup][guilib] silence casts away qualifiers warnings
Rechi Jul 21, 2018
44d7411
[cleanup][interfaces] silence casts away qualifiers warnings
Rechi Jul 21, 2018
bd5d5ef
[cleanup][network] silence casts away qualifiers warnings
Rechi Jul 21, 2018
3259856
[cleanup][pictures] silence casts away qualifiers warnings
Rechi Jul 21, 2018
f659d6a
[cleanup][platform] silence casts away qualifiers warnings
Rechi Jul 21, 2018
db5c090
[cleanup][threads] silence casts away qualifiers warnings
Rechi Jul 21, 2018
175adca
[cleanup][utils] silence casts away qualifiers warnings
Rechi Jul 21, 2018
e7c0caf
[cleanup][video] silence casts away qualifiers warnings
Rechi Jul 21, 2018
9e0fc73
[cleanup][windowing] silence casts away qualifiers warnings
Rechi Jul 21, 2018
File filter...
Filter file types
Jump to…
Jump to file or symbol
Failed to load files and symbols.

Always

Just for now

[cleanup][AudioEngine] silence casts away qualifiers warnings

  • Loading branch information...
Rechi committed Jul 21, 2018
commit 2eeee586a3d405d1088c9a569ed307a41862ae33
@@ -198,7 +198,8 @@ int CActiveAEResampleFFMPEG::Resample(uint8_t **dst_buffer, int dst_samples, uin
}
}

int ret = swr_convert(m_pContext, dst_buffer, dst_samples, (const uint8_t**)src_buffer, src_samples);
//! @bug libavresample isn't const correct
int ret = swr_convert(m_pContext, dst_buffer, dst_samples, const_cast<const uint8_t**>(src_buffer), src_samples);
if (ret < 0)
{
CLog::Log(LOGERROR, "CActiveAEResampleFFMPEG::Resample - resample failed");
@@ -107,12 +107,12 @@ void CAEELDParser::Parse(const uint8_t *data, size_t length, CAEDeviceInfo& info
header.fc = (data[7 ] & 0x04) == 0x04;
header.lfe = (data[7 ] & 0x02) == 0x02;
header.flr = (data[7 ] & 0x01) == 0x01;
header.port_id = Endian_SwapLE64(*((uint64_t*)(data + 8)));
header.port_id = Endian_SwapLE64(*((const uint64_t*)(data + 8)));
header.mfg_name[0] = 'A' + ((data[16] >> 2) & 0x1F) - 1;
header.mfg_name[1] = 'A' + (((data[16] << 3) | (data[17] >> 5)) & 0x1F) - 1;
header.mfg_name[2] = 'A' + (data[17] & 0x1F) - 1;
header.mfg_name[3] = '\0';
header.product_code = Endian_SwapLE16(*((uint16_t*)(data + 18)));
header.product_code = Endian_SwapLE16(*((const uint16_t*)(data + 18)));

switch (header.conn_type)
{
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.