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)
 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
This commit is contained in:
Thibault Saunier 2017-11-26 13:26:39 -03:00
parent 16d0d8c7c8
commit 1555143299

View file

@ -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;
}