rtmp: Fix crash inside free() with MSVC on Windows
authorNirbheek Chauhan <nirbheek@centricular.com>
Mon, 19 Aug 2019 19:00:04 +0000 (00:30 +0530)
committerNirbheek Chauhan <nirbheek@centricular.com>
Mon, 19 Aug 2019 19:03:17 +0000 (00:33 +0530)
commited743952188a86293051c354704f178073226399
treee718d3acf5e2608d1920ae38780484dafc1cc60e
parentb9ea2eb1236eb841d08a6ad76b4396d1a6d76cff
rtmp: Fix crash inside free() with MSVC on Windows

librtmp is always built with MinGW in Cerbero, so if the plugin is
built with MSVC and it frees memory allocated by librtmp, that leads
to a crash since the CRT used by MinGW and MSVC are different.

This is fixed in master by switching to a newer GCC toolchain which
has been configured to use the same CRT as newer versions of Visual
Studio, so there's no cross-CRT memory alloc/free issues.

See: https://gitlab.freedesktop.org/gstreamer/cerbero/issues/164
ext/rtmp/gstrtmpsrc.c