[gst-plugins-farsight/master] Simplify newsegment code
Olivier Crete
olivier.crete at collabora.co.uk
Tue Mar 3 10:53:12 PST 2009
20080704211511-3e2dc-b98d1e5b31c23eb7912197f9364a31560d092c63.gz
---
ext/mimic/gstmimdec.c | 7 ++-----
1 files changed, 2 insertions(+), 5 deletions(-)
diff --git a/ext/mimic/gstmimdec.c b/ext/mimic/gstmimdec.c
index a5abef2..4078add 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)
{
--
1.5.6.5
More information about the farsight-commits
mailing list