summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Crete <olivier.crete@collabora.co.uk>2008-07-04 21:15:11 +0000
committerOlivier CrĂȘte <olivier.crete@collabora.co.uk>2009-03-03 14:34:06 -0500
commitb86466464765f6ffdc974bfbd029788c216fe713 (patch)
treec5239e53ebee6053e63f2b00352cb501b477507c
parente76cd30d7fefd9f3f39aef237b3b457302e310a3 (diff)
downloadgst-plugins-bad-b86466464765f6ffdc974bfbd029788c216fe713.tar.gz
gst-plugins-bad-b86466464765f6ffdc974bfbd029788c216fe713.tar.bz2
gst-plugins-bad-b86466464765f6ffdc974bfbd029788c216fe713.zip
[MOVED FROM GST-P-FARSIGHT] Simplify newsegment code
20080704211511-3e2dc-b98d1e5b31c23eb7912197f9364a31560d092c63.gz
-rw-r--r--ext/mimic/gstmimdec.c7
1 files changed, 2 insertions, 5 deletions
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)
{