Let's use https instead of http wherever possible.
For speex/speexdsp this is essential because they where using neither
https nor checksums.
For other pages it avoids unnecessary redirects hen they eventually end
up on a https url anyway.`
Change-Id: Ic07d74480b5a3f5adcf4db17b1bacd51b6aa4439
This function hides the location where the error occurred, the daemon's
logs always pointed to print_averror with a failure of av_write_frame.
Change-Id: I25b703fc44969cc6726f11ed09ed67cc3edb6696
Reviewed-by: Andreas Traczyk <andreas.traczyk@savoirfairelinux.com>
Remove the second loop in the getFormatCb function. Ring will no longer
check the pixel formats twice in case hardware decoding isn't possible.
Change-Id: Ib03deb152394948979249828376bc4280b859424
Reviewed-by: Olivier Soldano <olivier.soldano@savoirfairelinux.com>
* Use base36 [0-9A-Z] instead of base16 (hex)
for PIN generation.
This increase the number of combinations from
2^32 to ~2^41.36, an increase of ~9.36 bits.
This increase should offset the entropy loss
due to the optional password.
* Use random_device directly instead of the
account (seeded) pseudo-generator because the PIN
should have cryptographic-level randomness.
Change-Id: I00169f5d08f6794329a9e9e22b7173a0a6ef9ef4
Use random_device from OpenDHT to
profit of the fallback on MinGW.
Change-Id: I00d0221d30c298f4342950a404fc2980e702e10b
Reviewed-by: Olivier Soldano <olivier.soldano@savoirfairelinux.com>
- Replaces the TARGET_OS_IOS(seems not used) with macros defined
in TargetConditionals.h to correctly determine platform target.
- This only replaces the macro in urlhook.cpp preventing the use
of the system function, which is critical to the iOS build.
Change-Id: I4ba40aefe212bf1279a4813d1cdc2d14ddbd4273
Reviewed-by: Kateryna Kostiuk <kateryna.kostiuk@savoirfairelinux.com>
Bump msgpack to latest stable version 2.1.5
Relevent fixes for Ring:
* fix unpack visitor to treat float32/64 correctly
* fix alignment problem on some platform (includes arm)
Change-Id: I3c3300c02e91435b0e72ae48e2614efad3e3b936
Reviewed-by: Sébastien Blin <sebastien.blin@savoirfairelinux.com>
* add patch to prevent the build of pcre executables and tests
* update pcre from 8.40 to 8.41
Change-Id: I0cd008e59c905ab44a02c11808a8cf9233063817
Reviewed-by: Sébastien Blin <sebastien.blin@savoirfairelinux.com>
Hardware decoding for 32 bit platforms was fixed by FFmpeg commit
dd8ffb191fd24f5b783b9722f63019120d61c48c, which in included in the
latest bump.
Change-Id: I1ec4a91ae85902d225938921dee8eaf236f7ef9e
* fix transaction ID reuse bug
* fix minor issues
* minor performance improvements
Change-Id: I7bc0bfa6d3b0f48a0cec9ab4554d265e415c8a68
Reviewed-by: Andreas Traczyk <andreas.traczyk@savoirfairelinux.com>
A non exhautive list of what this bump brings:
- Direct 3D 11 hardware decoding (UWP)
- Uniform API for vaapi, vdpau, videotoolbox, dxva2 and d3d11va
- 32 bit MediaCodec fix (Android hardware decoding)
- Non X screen capture on Linux (Wayland support)
- Better VP9 support
- Various bug fixes and optimizations
Due to problems with the VideoToolbox acceleration, the bump for MacOS
is postponed.
Change-Id: Id05a1d789c90ea1321f10e801a036c47b6f76d88
Rewrite of RingAccount::updateArchive() to prevents
insertion of empty file contents in case of non-existing files.
This may cause later empty-object creation with misleading usage.
Also exposes filtered and base64 decoded keys to easier code
readability and maintainance.
Change-Id: Id2d504ad73caaaad519be0344c3fb424ada35c20
Reviewed-by: Andreas Traczyk <andreas.traczyk@savoirfairelinux.com>
Account archive is meant to be device-independent,
so don't export device-specific configuration to it.
Change-Id: Iebc3fba81a445f0c28da3ca4f9086a72a436e173
After removing the boost dependency, the Ring UWP was unable to load
accounts with upnp enabled, as a deadlock would occur within the
threadpool initialization rountine of libupnp. I think the windows store
build of pthreads was preventing win32 thread management api symbols
from being defined. Something which loading boost must have been doing.
- Bumps pthreads-win32 from 2.9.1-release to 2.10.0-rc
- Builds a win32 static lib without windows store flags and uwp libs
- Modifies the libupnp and threadutils vs project patching
Change-Id: I3f43a066d86d284c614521fdb016810148590e70
Enable an usefull option to make easier documentation writting.
Change-Id: I7d0ea254a913dab09548f17167d432d75de901e4
Reviewed-by: Olivier Soldano <olivier.soldano@savoirfairelinux.com>
The --disable-[accel name] switches of the configure script are a
nightmare to maintain. They break with every bump of FFmpeg, and don't
work right half the time.
Keep only global switch --disable-accel.
Change-Id: I6b645f7102abb3903c27d7dac7d70f7f15a5e728
Reviewed-by: Olivier Soldano <olivier.soldano@savoirfairelinux.com>
Ignoring generated files from gnu global tool.
Change-Id: I8a94a8eead33a512cb65c692d01dc1e2610338fa
Reviewed-by: Anthony Léonard <anthony.leonard@savoirfairelinux.com>
TurnTransport class is a C++ wrapper on PJNATH turn socket API.
Bring an easy to use socket connected to a TURN server.
Support TCP (even with peer) and UDP connection types.
Requires rfc6062 support into pjproject 2.6, given by patch:
88c820ee60 / contrib: implement rfc6062 in pjnath
Include fonctional tests working with turn.ring.cx.
Run tests as usual with "make check" command.
Change-Id: Idf14c2ea192cab2fccf99b142492086284920a6b
Reviewed-by: Olivier Soldano <olivier.soldano@savoirfairelinux.com>
Don't define _FILE_OFFSET_BITS=64 on 32 bit android: this is no longer a
no-op starting with NDK 15.
Log2f patch no longer required.
Change-Id: I3d42ee9507e151becc2e39a5e97fa9a0fd011261
Prevents cmake from trying to use the system toolchain on macOS.
Change-Id: Ia4890ce07e10395832fb3c9ecbab8cea8e637826
Reviewed-by: Philippe Gorley <philippe.gorley@savoirfairelinux.com>
* Prevent symbols export (was the cause of wring libring.dll.a)
* Do not build tests binaries (waste of build time)
Change-Id: Ic823790f0371ae6320f8d6a4d5e9a925938b4f8d
Move build requirements from C++11 to C++14, for contrib and core.
[GR: ci msg + contrib support + m4 update]
Change-Id: I22793ba1ca06ea7c45d237c882a92d20a008f76f
Reviewed-by: Guillaume Roguez <guillaume.roguez@savoirfairelinux.com>
Signed-off-by: Guillaume Roguez <guillaume.roguez@savoirfairelinux.com>
Update "eth" to latest version from
https://github.com/ethereum/cpp-ethereum
This new version makes use of secp256k1 instead of custom
code and cryptopp to handle EC generation, and reduces its dependency
to boost to use more of the C++11 STL.
This allows to trim the code to completely remove the boost and
cryptopp dependencies.
Change-Id: I19118d3b833a9425cddbeabf6d0b6e07d5a4b15e
* prevent copy-initialisation with integer values
(maybe not what we want to do)
* remove by-pointer ctor API
(we don't need nullptr case)
* fix constness misuse on sockaddr conversion methods
* fix constness of bool conversion
(for cases where the IpAddr instance is not const)
* fix IpAddr rich-comparators (add <=, >=, <, >)
(fix usage of IpAddr as key in a map, where
the comparator is std::less, operator== was not used)
Change-Id: Iba9cf641d68bda37bd32d85dbd9dfffdc99078ed
Reviewed-by: Olivier Soldano <olivier.soldano@savoirfairelinux.com>
New dependency for eth sources
Change-Id: I5e03d42ce4a59267212cf175952e615412b1cf26
Reviewed-by: Andreas Traczyk <andreas.traczyk@savoirfairelinux.com>
Fixes a bug introduced in "osxvideo: use avfoundation indev" where the
video device didn't have the right name.
Change-Id: Ib2b31191925e89b6478a61812667ed5f86acc5d2
Reviewed-by: Kateryna Kostiuk <kateryna.kostiuk@savoirfairelinux.com>
- Commit e57038fe...(ringaccount: sets the ringId/username for disabled
accounts also) caused the deviceId to be loaded into ringAccountId_
for disabled accounts. This patch load devices, contacts, and trust
requests for disabled accounts while exiting from loadAccount as early
as possible.
Change-Id: If45ab84ac301faa5776d6af5436e672195c51501
A first try to implement the RFC 6062 into PJNATH.
More explanations into the rfc6062.patch itself.
Note: not ready to be pushed up-stream to pjproject.
Change-Id: I445f0c8a8db03c9a4a5b04d24ef63ff4f711a725
Reviewed-by: Anthony Léonard <anthony.leonard@savoirfairelinux.com>
Remove avfgrab and avfcapture patches, as their functionality is already
in FFmpeg with avfoundation.
Reduces the amount of code to maintain.
Change-Id: I6413821ad6d969dacf651c0fb7516c2499e89e07
Reviewed-by: Anthony Léonard <anthony.leonard@savoirfairelinux.com>
VDA is deprecated by Apple and replaced by VideoToolbox starting with
OSX 10.8+. FFmpeg is also deprecating VDA, as it was not ported to the
new hwaccel API.
Change-Id: I3cef3e98e31a8ba2497bebeeb6c72046a7552610
Reviewed-by: Anthony Léonard <anthony.leonard@savoirfairelinux.com>
FFmpeg frees and reallocs the buffer multiple times internally, which
means 2 things:
1. Mismatched free, as std::vector uses new, FFmpeg uses free.
2. buf_ no longer points to the correct address by the time it goes out
of scope; it points to an already freed part of memory.
Use a local variable instead of a class member to store the initial
buffer.
Change-Id: Ibe98658e68bec1b69875e6679ba1319dd7d98706
Reviewed-by: Guillaume Roguez <guillaume.roguez@savoirfairelinux.com>
Multiple accounts won't be able to register if
they use the same DHT port.
Prevent multiple accounts to use the same DHT port
by avoiding to include the DHT port configuration
in the account archive.
This will force Ring to use a new random port on device creation
from the archive.
Change-Id: If5b2143b731aba38d7ee0f921510c55d8289bdd3
Reviewed-by: Andreas Traczyk <andreas.traczyk@savoirfairelinux.com>
Brings many bug fixes, optimizations, and better abstraction of the
hardware decoding API. Removes VDA, as it is no longer supported in
FFmpeg and is deprecated by Apple. Also removes AVF patches; they are
already implemented in FFmpeg.
Change-Id: I15629531ad91296e77c16ec218b2bb6de5a705ba
When saving the account archive, remember if it has a
password to avoid asking for a password if there is none.
If the information if unknown, assume there is a password
(the user can still enter en empty password in this case).
This information if exposed with the read-only account property
ConfProperties::ARCHIVE_HAS_PASSWORD
Change-Id: Ib19d6225b07b4e222dfd099f6922a874168af542
Reviewed-by: Andreas Traczyk <andreas.traczyk@savoirfairelinux.com>
- Adds accountarchive files to visual studio project and includes
ciso646 to ringcontact.h for alternate logical operator defs.
Change-Id: I712809bb7f25a3f9ed9ecb7e3b2abbab93892825
Add dbus-cpp into contrib system to force patches for all gnu/linux
platforms that use this library.
The problem with this library, it is not longer active and lacks of
support on recent changes as the compatibility break with gcc-7.
Credits: patches provided by this commit come from Fedora dbug-c++
package sources.
Change-Id: Ib06a3ee750f9715cfedd6289405828e662e7da94
Reviewed-by: Olivier Soldano <olivier.soldano@savoirfairelinux.com>
Add a method to change a Ring account archive password.
The method is blocking and returns a boolean indicating if
the operation succeeded.
Note that the change won't be transferred to other devices
connected to the same account unless they are initialized
after the change, from the device where the password was changed.
Change-Id: Ide36bf407f75178e0019ab5dab511a79139b844c