mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-03 13:02:29 +00:00
encodebin: Release pads after setting the state to NULL in the unit test
See bug #647756.
This commit is contained in:
parent
67d2f852ff
commit
10e0b85a56
1 changed files with 11 additions and 11 deletions
|
@ -359,15 +359,15 @@ GST_START_TEST (test_encodebin_sink_pads_multiple_dynamic)
|
|||
fail_unless_equals_int (gst_element_set_state (ebin, GST_STATE_PAUSED),
|
||||
GST_STATE_CHANGE_SUCCESS);
|
||||
|
||||
/* Set back to NULL */
|
||||
fail_unless_equals_int (gst_element_set_state (ebin, GST_STATE_NULL),
|
||||
GST_STATE_CHANGE_SUCCESS);
|
||||
|
||||
gst_element_release_request_pad (GST_ELEMENT (ebin), sinkpadvorbis);
|
||||
gst_object_unref (sinkpadvorbis);
|
||||
gst_element_release_request_pad (GST_ELEMENT (ebin), sinkpadtheora);
|
||||
gst_object_unref (sinkpadtheora);
|
||||
|
||||
/* Set back to NULL */
|
||||
fail_unless_equals_int (gst_element_set_state (ebin, GST_STATE_NULL),
|
||||
GST_STATE_CHANGE_SUCCESS);
|
||||
|
||||
gst_object_unref (ebin);
|
||||
};
|
||||
|
||||
|
@ -604,13 +604,13 @@ GST_START_TEST (test_encodebin_render_audio_dynamic)
|
|||
}
|
||||
}
|
||||
|
||||
gst_element_release_request_pad (GST_ELEMENT (ebin), sinkpad);
|
||||
gst_object_unref (sinkpad);
|
||||
|
||||
/* Set back to NULL */
|
||||
fail_unless_equals_int (gst_element_set_state (pipeline, GST_STATE_NULL),
|
||||
GST_STATE_CHANGE_SUCCESS);
|
||||
|
||||
gst_element_release_request_pad (GST_ELEMENT (ebin), sinkpad);
|
||||
gst_object_unref (sinkpad);
|
||||
|
||||
gst_object_unref (bus);
|
||||
|
||||
gst_object_unref (pipeline);
|
||||
|
@ -745,15 +745,15 @@ GST_START_TEST (test_encodebin_render_audio_video_dynamic)
|
|||
}
|
||||
}
|
||||
|
||||
/* Set back to NULL */
|
||||
fail_unless_equals_int (gst_element_set_state (pipeline, GST_STATE_NULL),
|
||||
GST_STATE_CHANGE_SUCCESS);
|
||||
|
||||
gst_element_release_request_pad (GST_ELEMENT (ebin), sinkpad1);
|
||||
gst_object_unref (sinkpad1);
|
||||
gst_element_release_request_pad (GST_ELEMENT (ebin), sinkpad2);
|
||||
gst_object_unref (sinkpad2);
|
||||
|
||||
/* Set back to NULL */
|
||||
fail_unless_equals_int (gst_element_set_state (pipeline, GST_STATE_NULL),
|
||||
GST_STATE_CHANGE_SUCCESS);
|
||||
|
||||
gst_object_unref (bus);
|
||||
|
||||
gst_object_unref (pipeline);
|
||||
|
|
Loading…
Reference in a new issue