mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-19 00:01:23 +00:00
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:
parent
16d0d8c7c8
commit
1555143299
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue