gst-libs/gst/rtsp/gstrtspconnection.c: Cast glong to time_t as time_t might have...
authorSebastian Dröge <slomo@circular-chaos.org>
Tue, 29 Jan 2008 09:59:03 +0000 (09:59 +0000)
committerSebastian Dröge <slomo@circular-chaos.org>
Tue, 29 Jan 2008 09:59:03 +0000 (09:59 +0000)
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.

ChangeLog
gst-libs/gst/rtsp/gstrtspconnection.c

index 9c636ea..835544a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,12 @@
 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>
+
        * gst-libs/gst/audio/gstaudiofilter.c:
        (gst_audio_filter_class_init):
        Initialize the GstRingerBuffer class to get it's debug category
index 48ffda2..c6fd2a8 100644 (file)
@@ -371,7 +371,7 @@ add_date_header (GstRTSPMessage * message)
 
   g_get_current_time (&tv);
   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);
 }