mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-30 04:00:37 +00:00
tests: flvmux: Fix flvmux's tests after fix for request pads handling
Now that flvmux doesn't release its request pads on PAUSED->READY the test doesn't need to re-request them for every reuse test start.
This commit is contained in:
parent
261d11a6d7
commit
c78048bc25
1 changed files with 13 additions and 13 deletions
|
@ -50,6 +50,7 @@ static void
|
||||||
mux_pcm_audio (guint num_buffers, guint repeat)
|
mux_pcm_audio (guint num_buffers, guint repeat)
|
||||||
{
|
{
|
||||||
GstElement *src, *sink, *flvmux, *conv, *pipeline;
|
GstElement *src, *sink, *flvmux, *conv, *pipeline;
|
||||||
|
GstPad *sinkpad, *srcpad;
|
||||||
gint counter;
|
gint counter;
|
||||||
|
|
||||||
GST_LOG ("num_buffers = %u", num_buffers);
|
GST_LOG ("num_buffers = %u", num_buffers);
|
||||||
|
@ -83,13 +84,6 @@ mux_pcm_audio (guint num_buffers, guint repeat)
|
||||||
fail_unless (gst_element_link (src, conv));
|
fail_unless (gst_element_link (src, conv));
|
||||||
fail_unless (gst_element_link (flvmux, sink));
|
fail_unless (gst_element_link (flvmux, sink));
|
||||||
|
|
||||||
do {
|
|
||||||
GstStateChangeReturn state_ret;
|
|
||||||
GstMessage *msg;
|
|
||||||
GstPad *sinkpad, *srcpad;
|
|
||||||
|
|
||||||
GST_LOG ("repeat=%d", repeat);
|
|
||||||
|
|
||||||
/* now link the elements */
|
/* now link the elements */
|
||||||
sinkpad = gst_element_get_request_pad (flvmux, "audio");
|
sinkpad = gst_element_get_request_pad (flvmux, "audio");
|
||||||
fail_unless (sinkpad != NULL, "Could not get audio request pad");
|
fail_unless (sinkpad != NULL, "Could not get audio request pad");
|
||||||
|
@ -102,6 +96,12 @@ mux_pcm_audio (guint num_buffers, guint repeat)
|
||||||
gst_object_unref (srcpad);
|
gst_object_unref (srcpad);
|
||||||
gst_object_unref (sinkpad);
|
gst_object_unref (sinkpad);
|
||||||
|
|
||||||
|
do {
|
||||||
|
GstStateChangeReturn state_ret;
|
||||||
|
GstMessage *msg;
|
||||||
|
|
||||||
|
GST_LOG ("repeat=%d", repeat);
|
||||||
|
|
||||||
counter = 0;
|
counter = 0;
|
||||||
|
|
||||||
state_ret = gst_element_set_state (pipeline, GST_STATE_PAUSED);
|
state_ret = gst_element_set_state (pipeline, GST_STATE_PAUSED);
|
||||||
|
|
Loading…
Reference in a new issue