summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThibault Saunier <tsaunier@gnome.org>2017-11-26 13:26:39 -0300
committerThibault Saunier <tsaunier@gnome.org>2017-11-30 23:58:16 -0300
commit1555143299ccedb0ff8ed9e7ee1c59285b1b13f4 (patch)
treeb954fa5c7197b44275930177f772b3bb8502b62d
parent16d0d8c7c895a15fa9b11ad99eb799771c1833fd (diff)
Fix build when -Werror=deprecated-declarations is on
As gst_rtsp_session_next_timeout is deprecated. ``` ../subprojects/gst-rtsp-server/gst/rtsp-server/rtsp-session.c:760:3: error: ‘gst_rtsp_session_next_timeout’ is deprecated: Use 'gst_rtsp_session_next_timeout_usec' instead [-Werror=deprecated-declarations] res = (gst_rtsp_session_next_timeout (session, now) == 0); ^~~ ../subprojects/gst-rtsp-server/gst/rtsp-server/rtsp-session.c:685:1: note: declared here gst_rtsp_session_next_timeout (GstRTSPSession * session, GTimeVal * now) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ```
-rw-r--r--gst/rtsp-server/rtsp-session.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gst/rtsp-server/rtsp-session.c b/gst/rtsp-server/rtsp-session.c
index 8e82ce2..7066642 100644
--- a/gst/rtsp-server/rtsp-session.c
+++ b/gst/rtsp-server/rtsp-session.c
@@ -757,7 +757,8 @@ gst_rtsp_session_is_expired (GstRTSPSession * session, GTimeVal * now)
{
gboolean res;
- res = (gst_rtsp_session_next_timeout (session, now) == 0);
+ res = gst_rtsp_session_next_timeout_usec (session,
+ (now->tv_sec * G_USEC_PER_SEC) + (now->tv_usec));
return res;
}