mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 09:10:36 +00:00
[MOVED FROM GST-P-FARSIGHT] Simplify newsegment code
20080704211511-3e2dc-b98d1e5b31c23eb7912197f9364a31560d092c63.gz
This commit is contained in:
parent
e76cd30d7f
commit
b864664647
1 changed files with 2 additions and 5 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue