summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Hervey <edward@centricular.com>2017-11-20 16:48:55 +0100
committerEdward Hervey <bilboed@bilboed.com>2017-11-21 07:59:15 +0100
commit0dddaba9bb764c86fb40028b2d1009cabd26e0c8 (patch)
tree8524b4fb4b09d61c2ee0883cfcc9b3672d7676ee
parent27d256d4caca3aec4342ce5d5d18502315939dbd (diff)
rtsp-media: Don't set float on a gint64 variable
Just use 0. Fixes 'undefined' behaviour from clang
-rw-r--r--gst/rtsp-server/rtsp-media.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gst/rtsp-server/rtsp-media.c b/gst/rtsp-server/rtsp-media.c
index f9914b0..b554507 100644
--- a/gst/rtsp-server/rtsp-media.c
+++ b/gst/rtsp-server/rtsp-media.c
@@ -703,7 +703,7 @@ check_seekable (GstRTSPMedia * media)
gint64 start, end;
gst_query_parse_seeking (query, &format, &seekable, &start, &end);
- priv->seekable = seekable ? G_MAXINT64 : 0.0;
+ priv->seekable = seekable ? G_MAXINT64 : 0;
}
gst_query_unref (query);