mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-09-09 05:38:58 +00:00
gst-libs/gst/rtsp/gstrtspconnection.c: Cast glong to time_t as time_t might have a different type on other platforms,...
Original commit message from CVS: * gst-libs/gst/rtsp/gstrtspconnection.c: (add_date_header): Cast glong to time_t as time_t might have a different type on other platforms, like FreeBSD, and we get a compiler warning otherwise. Fixes bug #511825.
This commit is contained in:
parent
a6e4222c70
commit
bd4bb423e9
2 changed files with 8 additions and 1 deletions
|
@ -1,3 +1,10 @@
|
||||||
|
2008-01-29 Sebastian Dröge <slomo@circular-chaos.org>
|
||||||
|
|
||||||
|
* gst-libs/gst/rtsp/gstrtspconnection.c: (add_date_header):
|
||||||
|
Cast glong to time_t as time_t might have a different type on
|
||||||
|
other platforms, like FreeBSD, and we get a compiler warning
|
||||||
|
otherwise. Fixes bug #511825.
|
||||||
|
|
||||||
2008-01-29 Sebastian Dröge <slomo@circular-chaos.org>
|
2008-01-29 Sebastian Dröge <slomo@circular-chaos.org>
|
||||||
|
|
||||||
* gst-libs/gst/audio/gstaudiofilter.c:
|
* gst-libs/gst/audio/gstaudiofilter.c:
|
||||||
|
|
|
@ -371,7 +371,7 @@ add_date_header (GstRTSPMessage * message)
|
||||||
|
|
||||||
g_get_current_time (&tv);
|
g_get_current_time (&tv);
|
||||||
strftime (date_string, sizeof (date_string), "%a, %d %b %Y %H:%M:%S GMT",
|
strftime (date_string, sizeof (date_string), "%a, %d %b %Y %H:%M:%S GMT",
|
||||||
gmtime (&tv.tv_sec));
|
gmtime ((time_t *) & tv.tv_sec));
|
||||||
|
|
||||||
gst_rtsp_message_add_header (message, GST_RTSP_HDR_DATE, date_string);
|
gst_rtsp_message_add_header (message, GST_RTSP_HDR_DATE, date_string);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue