playsink{audio,video}convert: Send NEWSEGMENT events to sinkpads instead of pushing them

This commit is contained in:
Sebastian Dröge 2011-08-24 14:05:27 +02:00
parent 7b8b0fa1bb
commit e9a5d4f8fd
2 changed files with 4 additions and 4 deletions

View file

@ -83,13 +83,13 @@ distribute_running_time (GstElement * element, const GstSegment * segment)
if (segment->accum) {
event = gst_event_new_new_segment_full (FALSE, segment->rate,
segment->applied_rate, segment->format, 0, segment->accum, 0);
gst_pad_push_event (pad, event);
gst_pad_send_event (pad, event);
}
event = gst_event_new_new_segment_full (FALSE, segment->rate,
segment->applied_rate, segment->format,
segment->start, segment->stop, segment->time);
gst_pad_push_event (pad, event);
gst_pad_send_event (pad, event);
gst_object_unref (pad);
}

View file

@ -83,13 +83,13 @@ distribute_running_time (GstElement * element, const GstSegment * segment)
if (segment->accum) {
event = gst_event_new_new_segment_full (FALSE, segment->rate,
segment->applied_rate, segment->format, 0, segment->accum, 0);
gst_pad_push_event (pad, event);
gst_pad_send_event (pad, event);
}
event = gst_event_new_new_segment_full (FALSE, segment->rate,
segment->applied_rate, segment->format,
segment->start, segment->stop, segment->time);
gst_pad_push_event (pad, event);
gst_pad_send_event (pad, event);
gst_object_unref (pad);
}