summaryrefslogtreecommitdiff
path: root/gst/gstsegment.c
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@collabora.co.uk>2013-04-04 10:17:30 +0200
committerWim Taymans <wim.taymans@collabora.co.uk>2013-04-04 10:17:30 +0200
commit95c6cd37a87984f35aa8b9b15ec32d4202b4b6b6 (patch)
tree082d0329b88804864d49df04728f7c0da5692c5b /gst/gstsegment.c
parentab44e14c52555136738ff77aaad48b2eeea46ce6 (diff)
segment: don't WARN, just DEBUG
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=696911
Diffstat (limited to 'gst/gstsegment.c')
-rw-r--r--gst/gstsegment.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/gst/gstsegment.c b/gst/gstsegment.c
index e9f4bb8193..c663421236 100644
--- a/gst/gstsegment.c
+++ b/gst/gstsegment.c
@@ -300,9 +300,9 @@ gst_segment_do_seek (GstSegment * segment, gdouble rate,
/* we can't have stop before start */
if (stop != -1) {
if (start > stop) {
- g_return_val_if_fail (start <= stop, FALSE);
GST_WARNING ("segment update failed: start(%" G_GUINT64_FORMAT
") > stop(%" G_GUINT64_FORMAT ")", start, stop);
+ g_return_val_if_fail (start <= stop, FALSE);
return FALSE;
}
}
@@ -478,7 +478,7 @@ gst_segment_to_running_time (const GstSegment * segment, GstFormat format,
gdouble abs_rate;
if (G_UNLIKELY (position == -1)) {
- GST_WARNING ("invalid position (-1)");
+ GST_DEBUG ("invalid position (-1)");
return -1;
}
@@ -492,7 +492,7 @@ gst_segment_to_running_time (const GstSegment * segment, GstFormat format,
/* before the segment boundary */
if (G_UNLIKELY (position < start)) {
- GST_WARNING ("position(%" G_GUINT64_FORMAT ") < start(%" G_GUINT64_FORMAT
+ GST_DEBUG ("position(%" G_GUINT64_FORMAT ") < start(%" G_GUINT64_FORMAT
")", position, start);
return -1;
}
@@ -502,7 +502,7 @@ gst_segment_to_running_time (const GstSegment * segment, GstFormat format,
if (G_LIKELY (segment->rate > 0.0)) {
/* after of the segment boundary */
if (G_UNLIKELY (stop != -1 && position > stop)) {
- GST_WARNING ("position(%" G_GUINT64_FORMAT ") > stop(%" G_GUINT64_FORMAT
+ GST_DEBUG ("position(%" G_GUINT64_FORMAT ") > stop(%" G_GUINT64_FORMAT
")", position, stop);
return -1;
}
@@ -513,13 +513,13 @@ gst_segment_to_running_time (const GstSegment * segment, GstFormat format,
/* cannot continue if no stop position set or outside of
* the segment. */
if (G_UNLIKELY (stop == -1)) {
- GST_WARNING ("invalid stop (-1)");
+ GST_DEBUG ("invalid stop (-1)");
return -1;
}
stop -= segment->offset;
if (G_UNLIKELY (position > stop)) {
- GST_WARNING ("position(%" G_GUINT64_FORMAT ") > stop(%" G_GUINT64_FORMAT
+ GST_DEBUG ("position(%" G_GUINT64_FORMAT ") > stop(%" G_GUINT64_FORMAT
")", position, stop);
return -1;
}