[MOVED FROM GST-P-FARSIGHT] Simplify newsegment code

20080704211511-3e2dc-b98d1e5b31c23eb7912197f9364a31560d092c63.gz
This commit is contained in:
Olivier Crete 2008-07-04 21:15:11 +00:00 committed by Olivier Crête
parent e76cd30d7f
commit b864664647

View file

@ -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)
{