diff options
Diffstat (limited to 'avmedia/source/gstreamer/gstplayer.cxx')
-rw-r--r-- | avmedia/source/gstreamer/gstplayer.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/avmedia/source/gstreamer/gstplayer.cxx b/avmedia/source/gstreamer/gstplayer.cxx index 3ded8831b789..bf934235a992 100644 --- a/avmedia/source/gstreamer/gstplayer.cxx +++ b/avmedia/source/gstreamer/gstplayer.cxx @@ -30,7 +30,7 @@ #include <math.h> #include <cppuhelper/supportsservice.hxx> - +#include <o3tl/safeint.hxx> #include <sal/log.hxx> #include <rtl/string.hxx> #include <salhelper/thread.hxx> @@ -126,7 +126,7 @@ void MissingPluginInstaller::report( return; } std::size_t len = std::strlen(det); - if (len > sal_uInt32(SAL_MAX_INT32)) { + if (len > o3tl::make_unsigned(SAL_MAX_INT32)) { SAL_WARN("avmedia.gstreamer", "detail string too long"); g_free(det); return; |