diff --git a/subprojects/gst-plugins-bad/ext/dtls/gstdtlsconnection.c b/subprojects/gst-plugins-bad/ext/dtls/gstdtlsconnection.c index e94c6e7e9e..eaf77c34e6 100644 --- a/subprojects/gst-plugins-bad/ext/dtls/gstdtlsconnection.c +++ b/subprojects/gst-plugins-bad/ext/dtls/gstdtlsconnection.c @@ -449,7 +449,7 @@ gst_dtls_connection_check_timeout_locked (GstDtlsConnection * self) priv = self->priv; if (DTLSv1_get_timeout (priv->ssl, &timeout)) { - wait_time = timeout.tv_sec * G_USEC_PER_SEC + timeout.tv_usec; + wait_time = ((gint64) timeout.tv_sec) * G_USEC_PER_SEC + timeout.tv_usec; GST_DEBUG_OBJECT (self, "waiting for %" G_GINT64_FORMAT " usec", wait_time); if (wait_time) {