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 797128 - videoaggregator: Notify drained status of a videoaggregator pad
videoaggregator: Notify drained status of a videoaggregator pad
Status: RESOLVED OBSOLETE
Product: GStreamer
Classification: Platform
Component: gst-plugins-bad
git master
Other Linux
: Normal normal
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2018-09-12 04:49 UTC by Seungha Yang
Modified: 2018-11-03 14:31 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
videoaggregator: Notify drained status of a videoaggregator pad (6.42 KB, patch)
2018-09-12 04:50 UTC, Seungha Yang
none Details | Review
tests: compositor: Add test drained property and pad-drained signal (7.57 KB, patch)
2018-09-12 04:50 UTC, Seungha Yang
none Details | Review
aggregator: Add signal pad-drained to notify actual drained status of pad (6.47 KB, patch)
2018-09-13 11:37 UTC, Seungha Yang
none Details | Review
audioaggregator: Add has_internal_buffer vfunc (1.88 KB, patch)
2018-09-13 11:39 UTC, Seungha Yang
none Details | Review
tests: audiomixer: Add test pad-drained signal (6.03 KB, patch)
2018-09-13 11:39 UTC, Seungha Yang
none Details | Review
videoaggregator: Add has_internal_buffer vfunc (1.58 KB, patch)
2018-09-13 11:40 UTC, Seungha Yang
none Details | Review
tests: compositor: Add test pad-drained signal (6.94 KB, patch)
2018-09-13 11:40 UTC, Seungha Yang
none Details | Review

Description Seungha Yang 2018-09-12 04:49:45 UTC
Add GstVideoAggregatorPad::drained property and
GstVideoAggregator::pad-drained signal to help monitoring composing
status. Some complex use cases (such as dynamic add/remove composing
images), application might want to know when a stream is completely
consumed.
The issue is that EOS event cannot respect the consumed
status of a stream, because a buffer followed by the EOS might have
long duration and therefore the buffer will be alive until running time
of the other stream is reached to the buffer's running time.
Comment 1 Seungha Yang 2018-09-12 04:50:33 UTC
Created attachment 373612 [details] [review]
videoaggregator: Notify drained status of a videoaggregator pad
Comment 2 Seungha Yang 2018-09-12 04:50:49 UTC
Created attachment 373613 [details] [review]
tests: compositor: Add test drained property and pad-drained signal
Comment 3 Sebastian Dröge (slomo) 2018-09-12 07:19:55 UTC
This has to be added to the base class aggregator, or not? It also has a queue of buffers that is in addition to the one buffer in videoaggregator.
Comment 4 Seungha Yang 2018-09-12 08:09:28 UTC
(In reply to Sebastian Dröge (slomo) from comment #3)
> This has to be added to the base class aggregator, or not? It also has a
> queue of buffers that is in addition to the one buffer in videoaggregator.

Probably "drained" information could be useful for every subclass of aggregator, and therefore adding new property/signal to aggregator seems to be more reasonable. But we need vfunc for checking "drained (i.e., EOSed and also empty queue)" since most subclass has their own queue in addition to queue of baseclass... I'll take a look at more
Comment 5 Seungha Yang 2018-09-13 11:37:59 UTC
Created attachment 373634 [details] [review]
aggregator: Add signal pad-drained to notify actual drained status of pad
Comment 6 Seungha Yang 2018-09-13 11:39:04 UTC
Created attachment 373635 [details] [review]
audioaggregator: Add has_internal_buffer vfunc
Comment 7 Seungha Yang 2018-09-13 11:39:20 UTC
Created attachment 373636 [details] [review]
tests: audiomixer: Add test pad-drained signal
Comment 8 Seungha Yang 2018-09-13 11:40:12 UTC
Created attachment 373637 [details] [review]
videoaggregator: Add has_internal_buffer vfunc
Comment 9 Seungha Yang 2018-09-13 11:40:43 UTC
Created attachment 373638 [details] [review]
tests: compositor: Add test pad-drained signal
Comment 10 Seungha Yang 2018-09-13 11:45:38 UTC
"pad-drained" signal seems to be enough, so I removed "drained" read only property from last patch.
Comment 11 GStreamer system administrator 2018-11-03 14:31:44 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/issues/786.