mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
audiowsincband: Test should send segment after CAPS
This makes the unit test pass again. https://bugzilla.gnome.org/show_bug.cgi?id=699966
This commit is contained in:
parent
22d64ea3be
commit
9bd526ef4a
1 changed files with 52 additions and 52 deletions
|
@ -132,15 +132,15 @@ GST_START_TEST (test_32_bp_0hz)
|
||||||
in[i] = 1.0;
|
in[i] = 1.0;
|
||||||
gst_buffer_unmap (inbuffer, &map);
|
gst_buffer_unmap (inbuffer, &map);
|
||||||
|
|
||||||
/* ensure segment (format) properly setup */
|
|
||||||
gst_segment_init (&segment, GST_FORMAT_TIME);
|
|
||||||
fail_unless (gst_pad_push_event (mysrcpad, gst_event_new_segment (&segment)));
|
|
||||||
|
|
||||||
caps = gst_caps_from_string (AUDIO_WSINC_BAND_CAPS_STRING_32);
|
caps = gst_caps_from_string (AUDIO_WSINC_BAND_CAPS_STRING_32);
|
||||||
gst_pad_set_caps (mysrcpad, caps);
|
gst_pad_set_caps (mysrcpad, caps);
|
||||||
gst_caps_unref (caps);
|
gst_caps_unref (caps);
|
||||||
ASSERT_BUFFER_REFCOUNT (inbuffer, "inbuffer", 1);
|
ASSERT_BUFFER_REFCOUNT (inbuffer, "inbuffer", 1);
|
||||||
|
|
||||||
|
/* ensure segment (format) properly setup */
|
||||||
|
gst_segment_init (&segment, GST_FORMAT_TIME);
|
||||||
|
fail_unless (gst_pad_push_event (mysrcpad, gst_event_new_segment (&segment)));
|
||||||
|
|
||||||
/* pushing gives away my reference ... */
|
/* pushing gives away my reference ... */
|
||||||
fail_unless (gst_pad_push (mysrcpad, inbuffer) == GST_FLOW_OK);
|
fail_unless (gst_pad_push (mysrcpad, inbuffer) == GST_FLOW_OK);
|
||||||
fail_unless (gst_pad_push_event (mysrcpad, gst_event_new_eos ()));
|
fail_unless (gst_pad_push_event (mysrcpad, gst_event_new_eos ()));
|
||||||
|
@ -285,15 +285,15 @@ GST_START_TEST (test_32_bp_22050hz)
|
||||||
}
|
}
|
||||||
gst_buffer_unmap (inbuffer, &map);
|
gst_buffer_unmap (inbuffer, &map);
|
||||||
|
|
||||||
/* ensure segment (format) properly setup */
|
|
||||||
gst_segment_init (&segment, GST_FORMAT_TIME);
|
|
||||||
fail_unless (gst_pad_push_event (mysrcpad, gst_event_new_segment (&segment)));
|
|
||||||
|
|
||||||
caps = gst_caps_from_string (AUDIO_WSINC_BAND_CAPS_STRING_32);
|
caps = gst_caps_from_string (AUDIO_WSINC_BAND_CAPS_STRING_32);
|
||||||
gst_pad_set_caps (mysrcpad, caps);
|
gst_pad_set_caps (mysrcpad, caps);
|
||||||
gst_caps_unref (caps);
|
gst_caps_unref (caps);
|
||||||
ASSERT_BUFFER_REFCOUNT (inbuffer, "inbuffer", 1);
|
ASSERT_BUFFER_REFCOUNT (inbuffer, "inbuffer", 1);
|
||||||
|
|
||||||
|
/* ensure segment (format) properly setup */
|
||||||
|
gst_segment_init (&segment, GST_FORMAT_TIME);
|
||||||
|
fail_unless (gst_pad_push_event (mysrcpad, gst_event_new_segment (&segment)));
|
||||||
|
|
||||||
/* pushing gives away my reference ... */
|
/* pushing gives away my reference ... */
|
||||||
fail_unless (gst_pad_push (mysrcpad, inbuffer) == GST_FLOW_OK);
|
fail_unless (gst_pad_push (mysrcpad, inbuffer) == GST_FLOW_OK);
|
||||||
fail_unless (gst_pad_push_event (mysrcpad, gst_event_new_eos ()));
|
fail_unless (gst_pad_push_event (mysrcpad, gst_event_new_eos ()));
|
||||||
|
@ -357,15 +357,15 @@ GST_START_TEST (test_32_br_0hz)
|
||||||
in[i] = 1.0;
|
in[i] = 1.0;
|
||||||
gst_buffer_unmap (inbuffer, &map);
|
gst_buffer_unmap (inbuffer, &map);
|
||||||
|
|
||||||
/* ensure segment (format) properly setup */
|
|
||||||
gst_segment_init (&segment, GST_FORMAT_TIME);
|
|
||||||
fail_unless (gst_pad_push_event (mysrcpad, gst_event_new_segment (&segment)));
|
|
||||||
|
|
||||||
caps = gst_caps_from_string (AUDIO_WSINC_BAND_CAPS_STRING_32);
|
caps = gst_caps_from_string (AUDIO_WSINC_BAND_CAPS_STRING_32);
|
||||||
gst_pad_set_caps (mysrcpad, caps);
|
gst_pad_set_caps (mysrcpad, caps);
|
||||||
gst_caps_unref (caps);
|
gst_caps_unref (caps);
|
||||||
ASSERT_BUFFER_REFCOUNT (inbuffer, "inbuffer", 1);
|
ASSERT_BUFFER_REFCOUNT (inbuffer, "inbuffer", 1);
|
||||||
|
|
||||||
|
/* ensure segment (format) properly setup */
|
||||||
|
gst_segment_init (&segment, GST_FORMAT_TIME);
|
||||||
|
fail_unless (gst_pad_push_event (mysrcpad, gst_event_new_segment (&segment)));
|
||||||
|
|
||||||
/* pushing gives away my reference ... */
|
/* pushing gives away my reference ... */
|
||||||
fail_unless (gst_pad_push (mysrcpad, inbuffer) == GST_FLOW_OK);
|
fail_unless (gst_pad_push (mysrcpad, inbuffer) == GST_FLOW_OK);
|
||||||
fail_unless (gst_pad_push_event (mysrcpad, gst_event_new_eos ()));
|
fail_unless (gst_pad_push_event (mysrcpad, gst_event_new_eos ()));
|
||||||
|
@ -434,15 +434,15 @@ GST_START_TEST (test_32_br_11025hz)
|
||||||
}
|
}
|
||||||
gst_buffer_unmap (inbuffer, &map);
|
gst_buffer_unmap (inbuffer, &map);
|
||||||
|
|
||||||
/* ensure segment (format) properly setup */
|
|
||||||
gst_segment_init (&segment, GST_FORMAT_TIME);
|
|
||||||
fail_unless (gst_pad_push_event (mysrcpad, gst_event_new_segment (&segment)));
|
|
||||||
|
|
||||||
caps = gst_caps_from_string (AUDIO_WSINC_BAND_CAPS_STRING_32);
|
caps = gst_caps_from_string (AUDIO_WSINC_BAND_CAPS_STRING_32);
|
||||||
gst_pad_set_caps (mysrcpad, caps);
|
gst_pad_set_caps (mysrcpad, caps);
|
||||||
gst_caps_unref (caps);
|
gst_caps_unref (caps);
|
||||||
ASSERT_BUFFER_REFCOUNT (inbuffer, "inbuffer", 1);
|
ASSERT_BUFFER_REFCOUNT (inbuffer, "inbuffer", 1);
|
||||||
|
|
||||||
|
/* ensure segment (format) properly setup */
|
||||||
|
gst_segment_init (&segment, GST_FORMAT_TIME);
|
||||||
|
fail_unless (gst_pad_push_event (mysrcpad, gst_event_new_segment (&segment)));
|
||||||
|
|
||||||
/* pushing gives away my reference ... */
|
/* pushing gives away my reference ... */
|
||||||
fail_unless (gst_pad_push (mysrcpad, inbuffer) == GST_FLOW_OK);
|
fail_unless (gst_pad_push (mysrcpad, inbuffer) == GST_FLOW_OK);
|
||||||
fail_unless (gst_pad_push_event (mysrcpad, gst_event_new_eos ()));
|
fail_unless (gst_pad_push_event (mysrcpad, gst_event_new_eos ()));
|
||||||
|
@ -509,15 +509,15 @@ GST_START_TEST (test_32_br_22050hz)
|
||||||
}
|
}
|
||||||
gst_buffer_unmap (inbuffer, &map);
|
gst_buffer_unmap (inbuffer, &map);
|
||||||
|
|
||||||
/* ensure segment (format) properly setup */
|
|
||||||
gst_segment_init (&segment, GST_FORMAT_TIME);
|
|
||||||
fail_unless (gst_pad_push_event (mysrcpad, gst_event_new_segment (&segment)));
|
|
||||||
|
|
||||||
caps = gst_caps_from_string (AUDIO_WSINC_BAND_CAPS_STRING_32);
|
caps = gst_caps_from_string (AUDIO_WSINC_BAND_CAPS_STRING_32);
|
||||||
gst_pad_set_caps (mysrcpad, caps);
|
gst_pad_set_caps (mysrcpad, caps);
|
||||||
gst_caps_unref (caps);
|
gst_caps_unref (caps);
|
||||||
ASSERT_BUFFER_REFCOUNT (inbuffer, "inbuffer", 1);
|
ASSERT_BUFFER_REFCOUNT (inbuffer, "inbuffer", 1);
|
||||||
|
|
||||||
|
/* ensure segment (format) properly setup */
|
||||||
|
gst_segment_init (&segment, GST_FORMAT_TIME);
|
||||||
|
fail_unless (gst_pad_push_event (mysrcpad, gst_event_new_segment (&segment)));
|
||||||
|
|
||||||
/* pushing gives away my reference ... */
|
/* pushing gives away my reference ... */
|
||||||
fail_unless (gst_pad_push (mysrcpad, inbuffer) == GST_FLOW_OK);
|
fail_unless (gst_pad_push (mysrcpad, inbuffer) == GST_FLOW_OK);
|
||||||
fail_unless (gst_pad_push_event (mysrcpad, gst_event_new_eos ()));
|
fail_unless (gst_pad_push_event (mysrcpad, gst_event_new_eos ()));
|
||||||
|
@ -579,15 +579,15 @@ GST_START_TEST (test_32_small_buffer)
|
||||||
in[i] = 1.0;
|
in[i] = 1.0;
|
||||||
gst_buffer_unmap (inbuffer, &map);
|
gst_buffer_unmap (inbuffer, &map);
|
||||||
|
|
||||||
/* ensure segment (format) properly setup */
|
|
||||||
gst_segment_init (&segment, GST_FORMAT_TIME);
|
|
||||||
fail_unless (gst_pad_push_event (mysrcpad, gst_event_new_segment (&segment)));
|
|
||||||
|
|
||||||
caps = gst_caps_from_string (AUDIO_WSINC_BAND_CAPS_STRING_32);
|
caps = gst_caps_from_string (AUDIO_WSINC_BAND_CAPS_STRING_32);
|
||||||
gst_pad_set_caps (mysrcpad, caps);
|
gst_pad_set_caps (mysrcpad, caps);
|
||||||
gst_caps_unref (caps);
|
gst_caps_unref (caps);
|
||||||
ASSERT_BUFFER_REFCOUNT (inbuffer, "inbuffer", 1);
|
ASSERT_BUFFER_REFCOUNT (inbuffer, "inbuffer", 1);
|
||||||
|
|
||||||
|
/* ensure segment (format) properly setup */
|
||||||
|
gst_segment_init (&segment, GST_FORMAT_TIME);
|
||||||
|
fail_unless (gst_pad_push_event (mysrcpad, gst_event_new_segment (&segment)));
|
||||||
|
|
||||||
/* pushing gives away my reference ... */
|
/* pushing gives away my reference ... */
|
||||||
fail_unless (gst_pad_push (mysrcpad, inbuffer) == GST_FLOW_OK);
|
fail_unless (gst_pad_push (mysrcpad, inbuffer) == GST_FLOW_OK);
|
||||||
fail_unless (gst_pad_push_event (mysrcpad, gst_event_new_eos ()));
|
fail_unless (gst_pad_push_event (mysrcpad, gst_event_new_eos ()));
|
||||||
|
@ -643,15 +643,15 @@ GST_START_TEST (test_64_bp_0hz)
|
||||||
in[i] = 1.0;
|
in[i] = 1.0;
|
||||||
gst_buffer_unmap (inbuffer, &map);
|
gst_buffer_unmap (inbuffer, &map);
|
||||||
|
|
||||||
/* ensure segment (format) properly setup */
|
|
||||||
gst_segment_init (&segment, GST_FORMAT_TIME);
|
|
||||||
fail_unless (gst_pad_push_event (mysrcpad, gst_event_new_segment (&segment)));
|
|
||||||
|
|
||||||
caps = gst_caps_from_string (AUDIO_WSINC_BAND_CAPS_STRING_64);
|
caps = gst_caps_from_string (AUDIO_WSINC_BAND_CAPS_STRING_64);
|
||||||
gst_pad_set_caps (mysrcpad, caps);
|
gst_pad_set_caps (mysrcpad, caps);
|
||||||
gst_caps_unref (caps);
|
gst_caps_unref (caps);
|
||||||
ASSERT_BUFFER_REFCOUNT (inbuffer, "inbuffer", 1);
|
ASSERT_BUFFER_REFCOUNT (inbuffer, "inbuffer", 1);
|
||||||
|
|
||||||
|
/* ensure segment (format) properly setup */
|
||||||
|
gst_segment_init (&segment, GST_FORMAT_TIME);
|
||||||
|
fail_unless (gst_pad_push_event (mysrcpad, gst_event_new_segment (&segment)));
|
||||||
|
|
||||||
/* pushing gives away my reference ... */
|
/* pushing gives away my reference ... */
|
||||||
fail_unless (gst_pad_push (mysrcpad, inbuffer) == GST_FLOW_OK);
|
fail_unless (gst_pad_push (mysrcpad, inbuffer) == GST_FLOW_OK);
|
||||||
fail_unless (gst_pad_push_event (mysrcpad, gst_event_new_eos ()));
|
fail_unless (gst_pad_push_event (mysrcpad, gst_event_new_eos ()));
|
||||||
|
@ -719,15 +719,15 @@ GST_START_TEST (test_64_bp_11025hz)
|
||||||
}
|
}
|
||||||
gst_buffer_unmap (inbuffer, &map);
|
gst_buffer_unmap (inbuffer, &map);
|
||||||
|
|
||||||
/* ensure segment (format) properly setup */
|
|
||||||
gst_segment_init (&segment, GST_FORMAT_TIME);
|
|
||||||
fail_unless (gst_pad_push_event (mysrcpad, gst_event_new_segment (&segment)));
|
|
||||||
|
|
||||||
caps = gst_caps_from_string (AUDIO_WSINC_BAND_CAPS_STRING_64);
|
caps = gst_caps_from_string (AUDIO_WSINC_BAND_CAPS_STRING_64);
|
||||||
gst_pad_set_caps (mysrcpad, caps);
|
gst_pad_set_caps (mysrcpad, caps);
|
||||||
gst_caps_unref (caps);
|
gst_caps_unref (caps);
|
||||||
ASSERT_BUFFER_REFCOUNT (inbuffer, "inbuffer", 1);
|
ASSERT_BUFFER_REFCOUNT (inbuffer, "inbuffer", 1);
|
||||||
|
|
||||||
|
/* ensure segment (format) properly setup */
|
||||||
|
gst_segment_init (&segment, GST_FORMAT_TIME);
|
||||||
|
fail_unless (gst_pad_push_event (mysrcpad, gst_event_new_segment (&segment)));
|
||||||
|
|
||||||
/* pushing gives away my reference ... */
|
/* pushing gives away my reference ... */
|
||||||
fail_unless (gst_pad_push (mysrcpad, inbuffer) == GST_FLOW_OK);
|
fail_unless (gst_pad_push (mysrcpad, inbuffer) == GST_FLOW_OK);
|
||||||
fail_unless (gst_pad_push_event (mysrcpad, gst_event_new_eos ()));
|
fail_unless (gst_pad_push_event (mysrcpad, gst_event_new_eos ()));
|
||||||
|
@ -794,15 +794,15 @@ GST_START_TEST (test_64_bp_22050hz)
|
||||||
}
|
}
|
||||||
gst_buffer_unmap (inbuffer, &map);
|
gst_buffer_unmap (inbuffer, &map);
|
||||||
|
|
||||||
/* ensure segment (format) properly setup */
|
|
||||||
gst_segment_init (&segment, GST_FORMAT_TIME);
|
|
||||||
fail_unless (gst_pad_push_event (mysrcpad, gst_event_new_segment (&segment)));
|
|
||||||
|
|
||||||
caps = gst_caps_from_string (AUDIO_WSINC_BAND_CAPS_STRING_64);
|
caps = gst_caps_from_string (AUDIO_WSINC_BAND_CAPS_STRING_64);
|
||||||
gst_pad_set_caps (mysrcpad, caps);
|
gst_pad_set_caps (mysrcpad, caps);
|
||||||
gst_caps_unref (caps);
|
gst_caps_unref (caps);
|
||||||
ASSERT_BUFFER_REFCOUNT (inbuffer, "inbuffer", 1);
|
ASSERT_BUFFER_REFCOUNT (inbuffer, "inbuffer", 1);
|
||||||
|
|
||||||
|
/* ensure segment (format) properly setup */
|
||||||
|
gst_segment_init (&segment, GST_FORMAT_TIME);
|
||||||
|
fail_unless (gst_pad_push_event (mysrcpad, gst_event_new_segment (&segment)));
|
||||||
|
|
||||||
/* pushing gives away my reference ... */
|
/* pushing gives away my reference ... */
|
||||||
fail_unless (gst_pad_push (mysrcpad, inbuffer) == GST_FLOW_OK);
|
fail_unless (gst_pad_push (mysrcpad, inbuffer) == GST_FLOW_OK);
|
||||||
fail_unless (gst_pad_push_event (mysrcpad, gst_event_new_eos ()));
|
fail_unless (gst_pad_push_event (mysrcpad, gst_event_new_eos ()));
|
||||||
|
@ -866,15 +866,15 @@ GST_START_TEST (test_64_br_0hz)
|
||||||
in[i] = 1.0;
|
in[i] = 1.0;
|
||||||
gst_buffer_unmap (inbuffer, &map);
|
gst_buffer_unmap (inbuffer, &map);
|
||||||
|
|
||||||
/* ensure segment (format) properly setup */
|
|
||||||
gst_segment_init (&segment, GST_FORMAT_TIME);
|
|
||||||
fail_unless (gst_pad_push_event (mysrcpad, gst_event_new_segment (&segment)));
|
|
||||||
|
|
||||||
caps = gst_caps_from_string (AUDIO_WSINC_BAND_CAPS_STRING_64);
|
caps = gst_caps_from_string (AUDIO_WSINC_BAND_CAPS_STRING_64);
|
||||||
gst_pad_set_caps (mysrcpad, caps);
|
gst_pad_set_caps (mysrcpad, caps);
|
||||||
gst_caps_unref (caps);
|
gst_caps_unref (caps);
|
||||||
ASSERT_BUFFER_REFCOUNT (inbuffer, "inbuffer", 1);
|
ASSERT_BUFFER_REFCOUNT (inbuffer, "inbuffer", 1);
|
||||||
|
|
||||||
|
/* ensure segment (format) properly setup */
|
||||||
|
gst_segment_init (&segment, GST_FORMAT_TIME);
|
||||||
|
fail_unless (gst_pad_push_event (mysrcpad, gst_event_new_segment (&segment)));
|
||||||
|
|
||||||
/* pushing gives away my reference ... */
|
/* pushing gives away my reference ... */
|
||||||
fail_unless (gst_pad_push (mysrcpad, inbuffer) == GST_FLOW_OK);
|
fail_unless (gst_pad_push (mysrcpad, inbuffer) == GST_FLOW_OK);
|
||||||
fail_unless (gst_pad_push_event (mysrcpad, gst_event_new_eos ()));
|
fail_unless (gst_pad_push_event (mysrcpad, gst_event_new_eos ()));
|
||||||
|
@ -943,15 +943,15 @@ GST_START_TEST (test_64_br_11025hz)
|
||||||
}
|
}
|
||||||
gst_buffer_unmap (inbuffer, &map);
|
gst_buffer_unmap (inbuffer, &map);
|
||||||
|
|
||||||
/* ensure segment (format) properly setup */
|
|
||||||
gst_segment_init (&segment, GST_FORMAT_TIME);
|
|
||||||
fail_unless (gst_pad_push_event (mysrcpad, gst_event_new_segment (&segment)));
|
|
||||||
|
|
||||||
caps = gst_caps_from_string (AUDIO_WSINC_BAND_CAPS_STRING_64);
|
caps = gst_caps_from_string (AUDIO_WSINC_BAND_CAPS_STRING_64);
|
||||||
gst_pad_set_caps (mysrcpad, caps);
|
gst_pad_set_caps (mysrcpad, caps);
|
||||||
gst_caps_unref (caps);
|
gst_caps_unref (caps);
|
||||||
ASSERT_BUFFER_REFCOUNT (inbuffer, "inbuffer", 1);
|
ASSERT_BUFFER_REFCOUNT (inbuffer, "inbuffer", 1);
|
||||||
|
|
||||||
|
/* ensure segment (format) properly setup */
|
||||||
|
gst_segment_init (&segment, GST_FORMAT_TIME);
|
||||||
|
fail_unless (gst_pad_push_event (mysrcpad, gst_event_new_segment (&segment)));
|
||||||
|
|
||||||
/* pushing gives away my reference ... */
|
/* pushing gives away my reference ... */
|
||||||
fail_unless (gst_pad_push (mysrcpad, inbuffer) == GST_FLOW_OK);
|
fail_unless (gst_pad_push (mysrcpad, inbuffer) == GST_FLOW_OK);
|
||||||
fail_unless (gst_pad_push_event (mysrcpad, gst_event_new_eos ()));
|
fail_unless (gst_pad_push_event (mysrcpad, gst_event_new_eos ()));
|
||||||
|
@ -1018,15 +1018,15 @@ GST_START_TEST (test_64_br_22050hz)
|
||||||
}
|
}
|
||||||
gst_buffer_unmap (inbuffer, &map);
|
gst_buffer_unmap (inbuffer, &map);
|
||||||
|
|
||||||
/* ensure segment (format) properly setup */
|
|
||||||
gst_segment_init (&segment, GST_FORMAT_TIME);
|
|
||||||
fail_unless (gst_pad_push_event (mysrcpad, gst_event_new_segment (&segment)));
|
|
||||||
|
|
||||||
caps = gst_caps_from_string (AUDIO_WSINC_BAND_CAPS_STRING_64);
|
caps = gst_caps_from_string (AUDIO_WSINC_BAND_CAPS_STRING_64);
|
||||||
gst_pad_set_caps (mysrcpad, caps);
|
gst_pad_set_caps (mysrcpad, caps);
|
||||||
gst_caps_unref (caps);
|
gst_caps_unref (caps);
|
||||||
ASSERT_BUFFER_REFCOUNT (inbuffer, "inbuffer", 1);
|
ASSERT_BUFFER_REFCOUNT (inbuffer, "inbuffer", 1);
|
||||||
|
|
||||||
|
/* ensure segment (format) properly setup */
|
||||||
|
gst_segment_init (&segment, GST_FORMAT_TIME);
|
||||||
|
fail_unless (gst_pad_push_event (mysrcpad, gst_event_new_segment (&segment)));
|
||||||
|
|
||||||
/* pushing gives away my reference ... */
|
/* pushing gives away my reference ... */
|
||||||
fail_unless (gst_pad_push (mysrcpad, inbuffer) == GST_FLOW_OK);
|
fail_unless (gst_pad_push (mysrcpad, inbuffer) == GST_FLOW_OK);
|
||||||
fail_unless (gst_pad_push_event (mysrcpad, gst_event_new_eos ()));
|
fail_unless (gst_pad_push_event (mysrcpad, gst_event_new_eos ()));
|
||||||
|
@ -1088,15 +1088,15 @@ GST_START_TEST (test_64_small_buffer)
|
||||||
in[i] = 1.0;
|
in[i] = 1.0;
|
||||||
gst_buffer_unmap (inbuffer, &map);
|
gst_buffer_unmap (inbuffer, &map);
|
||||||
|
|
||||||
/* ensure segment (format) properly setup */
|
|
||||||
gst_segment_init (&segment, GST_FORMAT_TIME);
|
|
||||||
fail_unless (gst_pad_push_event (mysrcpad, gst_event_new_segment (&segment)));
|
|
||||||
|
|
||||||
caps = gst_caps_from_string (AUDIO_WSINC_BAND_CAPS_STRING_64);
|
caps = gst_caps_from_string (AUDIO_WSINC_BAND_CAPS_STRING_64);
|
||||||
gst_pad_set_caps (mysrcpad, caps);
|
gst_pad_set_caps (mysrcpad, caps);
|
||||||
gst_caps_unref (caps);
|
gst_caps_unref (caps);
|
||||||
ASSERT_BUFFER_REFCOUNT (inbuffer, "inbuffer", 1);
|
ASSERT_BUFFER_REFCOUNT (inbuffer, "inbuffer", 1);
|
||||||
|
|
||||||
|
/* ensure segment (format) properly setup */
|
||||||
|
gst_segment_init (&segment, GST_FORMAT_TIME);
|
||||||
|
fail_unless (gst_pad_push_event (mysrcpad, gst_event_new_segment (&segment)));
|
||||||
|
|
||||||
/* pushing gives away my reference ... */
|
/* pushing gives away my reference ... */
|
||||||
fail_unless (gst_pad_push (mysrcpad, inbuffer) == GST_FLOW_OK);
|
fail_unless (gst_pad_push (mysrcpad, inbuffer) == GST_FLOW_OK);
|
||||||
fail_unless (gst_pad_push_event (mysrcpad, gst_event_new_eos ()));
|
fail_unless (gst_pad_push_event (mysrcpad, gst_event_new_eos ()));
|
||||||
|
|
Loading…
Reference in a new issue