GstHarness *v_sink =
gst_harness_new_with_element (demux->element, NULL, NULL);
DemuxHarnesses harnesses = { a_sink, v_sink };
- guint i;
GstTestClock *tclock;
g_object_set (mux->element, "streamable", TRUE,
/* push from flvmux to demux */
- for (i = 0; i < 6; i++)
- gst_harness_push_to_sink (mux);
+ fail_unless_equals_int (GST_FLOW_OK, gst_harness_sink_push_many (mux, 6));
/* verify we got 2x audio and 1x video buffers out of flvdemux */
gst_buffer_unref (gst_harness_pull (a_sink));
GstHarness *v_sink =
gst_harness_new_with_element (demux->element, NULL, NULL);
DemuxHarnesses harnesses = { a_sink, v_sink };
- guint i;
const GstClockTime base_time = 123456789;
const GstClockTime duration_ms = 20;
gst_harness_crank_single_clock_wait (mux);
/* push from flvmux to demux */
- for (i = 0; i < 6; i++) {
- gst_harness_push_to_sink (mux);
- }
+ fail_unless_equals_int (GST_FLOW_OK, gst_harness_sink_push_many (mux, 6));
/* should accept without the constraint */
while ((event = gst_harness_try_pull_event (v_sink))) {
gst_harness_crank_single_clock_wait (mux);
/* push from flvmux to demux */
- for (i = 0; i < 2; i++) {
- gst_harness_push_to_sink (mux);
- }
+ fail_unless_equals_int (GST_FLOW_OK, gst_harness_sink_push_many (mux, 2));
/* should accept without the constraint */
while ((event = gst_harness_try_pull_event (v_sink))) {
GstHarness *v_sink =
gst_harness_new_with_element (demux->element, NULL, NULL);
DemuxHarnesses harnesses = { a_sink, v_sink };
- guint i;
const GstClockTime base_time = 123456789;
const GstClockTime duration_ms = 20;
gst_harness_crank_single_clock_wait (mux);
/* push from flvmux to demux */
- for (i = 0; i < 6; i++) {
- gst_harness_push_to_sink (mux);
- }
+ fail_unless_equals_int (GST_FLOW_OK, gst_harness_sink_push_many (mux, 6));
/* should accept without the constraint */
while ((event = gst_harness_try_pull_event (a_sink))) {
gst_harness_crank_single_clock_wait (mux);
/* push from flvmux to demux */
- for (i = 0; i < 2; i++) {
- gst_harness_push_to_sink (mux);
- }
+ fail_unless_equals_int (GST_FLOW_OK, gst_harness_sink_push_many (mux, 2));
/* should accept without the constraint */
while ((event = gst_harness_try_pull_event (a_sink))) {