After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 725550 - Add test case for queue2 element
Add test case for queue2 element
Status: RESOLVED NOTABUG
Product: GStreamer
Classification: Platform
Component: gstreamer (core)
git master
Other Linux
: Normal enhancement
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2014-03-03 05:18 UTC by HoonHee Lee
Modified: 2014-03-05 19:21 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Add test case for queue2 element (6.25 KB, patch)
2014-03-03 05:20 UTC, HoonHee Lee
rejected Details | Review

Description HoonHee Lee 2014-03-03 05:18:33 UTC
When paused state in queue2, buffers and events should not be sent to linked element. Thus, this a test case for verify whether the buffers and events could be sent or not to linked element in paused state in order to confirm leakage of buffers and events.

IMHO, I am not sure that whether this test case is needed or not.
Anyway I attached my patch.
Please review and test my patch for queue2.
Comment 1 HoonHee Lee 2014-03-03 05:20:53 UTC
Created attachment 270754 [details] [review]
Add test case for queue2 element
Comment 2 Sebastian Dröge (slomo) 2014-03-03 08:49:04 UTC
I don't think this is correct. In PAUSED queue2 will send buffers and events as in PLAYING, just the sinks will behave differently and not advance the running time. Thus only one buffer in your test is accepted by the sink.

What exactly is the problem you are seeing here or want to check for?
Comment 3 HoonHee Lee 2014-03-03 23:37:36 UTC
Thanks for your comment.
What I meant is that streaming case with buffering.
If there is a pipeline such as playbin which configures some elements that are souphttpsrc, queue2 and so on.
In this case, I just want to verify that whether the events and buffers are sending to linked element or not in paused state for buffering.
Comment 4 Sebastian Dröge (slomo) 2014-03-04 08:28:02 UTC
They are and they should. Only the sink will block in PAUSED state.
Comment 5 HoonHee Lee 2014-03-04 11:33:56 UTC
Thus, you mean that this test case is for streaming with buffering not required. Right?
Comment 6 Sebastian Dröge (slomo) 2014-03-05 19:20:58 UTC
Yes, it's not testing any behaviour of queue2 but just the pausing behaviour of the sinks... which can be tested much easier.

If you want to prepare a test for that, that would be accepted :) Thanks for working on this nonetheless, having more tests is definitely a good idea.