[0.10] gstreamer: plugins: explicitly cast initialization values to the correct type
Tim Müller
tpm at kemper.freedesktop.org
Thu Jan 5 10:37:38 PST 2012
Module: gstreamer
Branch: 0.10
Commit: 31ca11dd5a26f3e6752c6422051929bd1425a20a
URL: http://cgit.freedesktop.org/gstreamer/gstreamer/commit/?id=31ca11dd5a26f3e6752c6422051929bd1425a20a
Author: Idar Tollefsen <itollefs at cisco.com>
Date: Sun Jan 1 16:47:14 2012 +0100
plugins: explicitly cast initialization values to the correct type
https://bugzilla.gnome.org/show_bug.cgi?id=667288
---
plugins/elements/gstfdsrc.c | 2 +-
plugins/elements/gstinputselector.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/plugins/elements/gstfdsrc.c b/plugins/elements/gstfdsrc.c
index 3d38c6c..715f107 100644
--- a/plugins/elements/gstfdsrc.c
+++ b/plugins/elements/gstfdsrc.c
@@ -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);
diff --git a/plugins/elements/gstinputselector.c b/plugins/elements/gstinputselector.c
index a98d301..4da4735 100644
--- a/plugins/elements/gstinputselector.c
+++ b/plugins/elements/gstinputselector.c
@@ -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;
More information about the gstreamer-commits
mailing list