From: Wim Taymans Date: Mon, 9 May 2011 16:16:46 +0000 (+0200) Subject: segment: fix for new core API X-Git-Tag: 1.19.3~507^2~15061 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8b39dc2f80970c6231087b9834557b786e6caa9d;p=platform%2Fupstream%2Fgstreamer.git segment: fix for new core API Fix for gst_*_segment_full rename. --- diff --git a/gst/gdp/gstgdppay.c b/gst/gdp/gstgdppay.c index e9485cf1cd..0cb8288a5c 100644 --- a/gst/gdp/gstgdppay.c +++ b/gst/gdp/gstgdppay.c @@ -456,7 +456,7 @@ gst_gdp_pay_reset_streamheader (GstGDPPay * this) /* if these are our first ever buffers, send out new_segment first */ if (!this->sent_streamheader) { GstEvent *event = - gst_event_new_new_segment (TRUE, 1.0, GST_FORMAT_BYTES, 0, -1, 0); + gst_event_new_new_segment (TRUE, 1.0, 1.0, GST_FORMAT_BYTES, 0, -1, 0); GST_DEBUG_OBJECT (this, "Sending out new_segment event %p", event); if (!gst_pad_push_event (this->srcpad, event)) { GST_WARNING_OBJECT (this, "pushing new segment failed"); @@ -564,7 +564,8 @@ gst_gdp_pay_chain (GstPad * pad, GstBuffer * buffer) GST_WARNING_OBJECT (this, "did not receive new-segment before first buffer"); - event = gst_event_new_new_segment (TRUE, 1.0, GST_FORMAT_BYTES, 0, -1, 0); + event = + gst_event_new_new_segment (TRUE, 1.0, 1.0, GST_FORMAT_BYTES, 0, -1, 0); outbuffer = gst_gdp_buffer_from_event (this, event); gst_event_unref (event);