[Bug 785531] appsink: forward the Protection Event to the application
GStreamer (GNOME Bugzilla)
bugzilla at gnome.org
Tue Oct 3 16:32:59 UTC 2017
https://bugzilla.gnome.org/show_bug.cgi?id=785531
--- Comment #7 from y.bandou <bandou.yacine at gmail.com> ---
(In reply to Sebastian Dröge (slomo) from comment #6)
> Why do you need this information in the application from appsink, and not
> only inside the decryptor element and the application logic connected to it?
> What is your application doing based on the event / message?
>
> Also Olivier's comment makes sense, the ordering is not preserved here so
> you might receive a message after a new protection event already arrived in
> the appsink. It all depends a bit on what you actually want to do with the
> information.
>
> He means an API like pull_sample() that works for serialized events instead.
There is my use case in WebKit MSE/EME implementation:
I have two pipelines.
Pipeline1 (AppendPipeline): httpsrc ---> demux ---> appsink
Pipeline2 (PlaybackPipeline):appsrc --->parser---> decryptor--->decoder--->Sink
Application (MSE/EME implementation):
Pipeline1 ---> ( Buffer Manager ) ---> Pipeline2
When the Demux detects the encrypted content, it sends a Protection Event that
is propagated until appsink in pipeline1.
So i have two solutions to send the event to the application :
1. Add the current patch.
2. Send a bus message from demux to the application.
What do you suggest ?
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
More information about the gstreamer-bugs
mailing list