plugins: explicitly cast initialization values to the correct type
authorIdar Tollefsen <itollefs@cisco.com>
Sun, 1 Jan 2012 15:47:14 +0000 (16:47 +0100)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Wed, 4 Jan 2012 23:59:57 +0000 (23:59 +0000)
https://bugzilla.gnome.org/show_bug.cgi?id=667288

plugins/elements/gstfdsrc.c
plugins/elements/gstinputselector.c

index 3d38c6c..715f107 100644 (file)
@@ -634,7 +634,7 @@ gst_fd_src_uri_set_uri (GstURIHandler * handler, const gchar * uri)
   gchar *protocol, *q;
   GstFdSrc *src = GST_FD_SRC (handler);
   gint fd;
-  guint64 size = -1;
+  guint64 size = (guint64) - 1;
 
   GST_INFO_OBJECT (src, "checking uri %s", uri);
 
index a98d301..4da4735 100644 (file)
@@ -638,7 +638,7 @@ gst_input_selector_wait_running_time (GstInputSelector * sel,
   GstPad *active_sinkpad;
   GstSelectorPad *active_selpad;
   GstSegment *seg, *active_seg;
-  GstClockTime running_time, active_running_time = -1;
+  GstClockTime running_time, active_running_time = GST_CLOCK_TIME_NONE;
 
   seg = &pad->segment;