summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 7952a54)
raw | patch | inline | side by side (parent: 7952a54)
author | Sebastian Dröge <sebastian.droege@collabora.co.uk> | |
Wed, 7 Dec 2011 10:01:49 +0000 (11:01 +0100) | ||
committer | Sebastian Dröge <sebastian.droege@collabora.co.uk> | |
Wed, 7 Dec 2011 10:01:49 +0000 (11:01 +0100) |
plugins/elements/gstinputselector.c | patch | blob | history |
index 19030fb37e0f6e36b360ff57c1d94c8b1e65d4ac..a98d301d560053fe8e6cb9b06d9c4e1d2c559cee 100644 (file)
}
/* if we have a pending segment, push it out now */
if (G_UNLIKELY (selpad->segment_pending)) {
- GST_DEBUG_OBJECT (pad,
- "pushing pending NEWSEGMENT update %d, rate %lf, applied rate %lf, "
- "format %d, "
- "%" G_GINT64_FORMAT " -- %" G_GINT64_FORMAT ", time %"
- G_GINT64_FORMAT, FALSE, seg->rate, seg->applied_rate, seg->format,
- seg->start, seg->stop, seg->time);
+ if (G_UNLIKELY (seg->format == GST_FORMAT_UNDEFINED)) {
+ GST_ERROR_OBJECT (pad, "Buffers arrived before NEWSEGMENT event");
- start_event = gst_event_new_new_segment_full (FALSE, seg->rate,
- seg->applied_rate, seg->format, seg->start, seg->stop, seg->time);
+ } else {
+ GST_DEBUG_OBJECT (pad,
+ "pushing pending NEWSEGMENT update %d, rate %lf, applied rate %lf, "
+ "format %d, "
+ "%" G_GINT64_FORMAT " -- %" G_GINT64_FORMAT ", time %"
+ G_GINT64_FORMAT, FALSE, seg->rate, seg->applied_rate, seg->format,
+ seg->start, seg->stop, seg->time);
- selpad->segment_pending = FALSE;
+ start_event = gst_event_new_new_segment_full (FALSE, seg->rate,
+ seg->applied_rate, seg->format, seg->start, seg->stop, seg->time);
+ selpad->segment_pending = FALSE;
+ }
}
GST_INPUT_SELECTOR_UNLOCK (sel);