From b86466464765f6ffdc974bfbd029788c216fe713 Mon Sep 17 00:00:00 2001 From: Olivier Crete Date: Fri, 4 Jul 2008 21:15:11 +0000 Subject: [MOVED FROM GST-P-FARSIGHT] Simplify newsegment code 20080704211511-3e2dc-b98d1e5b31c23eb7912197f9364a31560d092c63.gz --- ext/mimic/gstmimdec.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'ext') diff --git a/ext/mimic/gstmimdec.c b/ext/mimic/gstmimdec.c index a5abef24..4078addc 100644 --- a/ext/mimic/gstmimdec.c +++ b/ext/mimic/gstmimdec.c @@ -221,7 +221,6 @@ gst_mimdec_chain (GstPad *pad, GstBuffer *in) frame_body = (guchar *) gst_adapter_peek (mimdec->adapter, mimdec->payload_size); if (mimdec->dec == NULL) { - GstSegment segment; GstEvent * event; gboolean result; @@ -258,10 +257,8 @@ gst_mimdec_chain (GstPad *pad, GstBuffer *in) goto out; } - gst_segment_init (&segment, GST_FORMAT_TIME); - event = gst_event_new_new_segment (FALSE, segment.rate, - segment.format, segment.start, segment.stop, segment.time); - + event = gst_event_new_new_segment (FALSE, 1.0, GST_FORMAT_TIME, + 0, -1, 0); result = gst_pad_push_event (mimdec->srcpad, event); if (!result) { -- cgit v1.2.1