index e210a11c6e9c69e444c943b37a8bfcf55804dda6..9b7e1867e2b3ba8a9e666c997e0c10b66df1f870 100644 (file)
g_free (padname);
}
+static void
+push_newsegment_events (GList * input_pads)
+{
+ GList *l;
+
+ for (l = input_pads; l; l = l->next) {
+ GstPad *pad = l->data;
+
+ gst_pad_push_event (pad, gst_event_new_new_segment_full (FALSE, 1.0, 1.0,
+ GST_FORMAT_BYTES, 0, -1, 0));
+ }
+}
+
/* Push buffers and switch for each selector pad */
static void
push_switched_buffers (GList * input_pads,
fail_unless (gst_element_set_state (sel,
GST_STATE_PLAYING) == GST_STATE_CHANGE_SUCCESS,
"could not set to playing");
+ push_newsegment_events (input_pads);
push_switched_buffers (input_pads, sel, output_pads, num_buffers_per_output);
count_output_buffers (output_pads, num_buffers_per_output);
fail_unless (gst_element_set_state (sel,
fail_unless (gst_element_set_state (sel,
GST_STATE_PLAYING) == GST_STATE_CHANGE_SUCCESS,
"could not set to playing");
+ push_newsegment_events (input_pads);
push_switched_buffers (input_pads, sel, input_pads, num_buffers_per_input);
count_output_buffers (output_pads, (num_input_pads * num_buffers_per_input));
fail_unless (gst_element_set_state (sel,