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 784671 - *decodebin: [API]: autoplug-discard
*decodebin: [API]: autoplug-discard
Status: RESOLVED WONTFIX
Product: GStreamer
Classification: Platform
Component: gst-plugins-base
unspecified
Other All
: Normal enhancement
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2017-07-07 20:44 UTC by Mathieu Duponchelle
Modified: 2018-06-18 22:47 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
*decodebin: [API]: autoplug-discard (10.25 KB, patch)
2017-07-07 20:45 UTC, Mathieu Duponchelle
none Details | Review
*decodebin: [API]: autoplug-discard (10.20 KB, patch)
2017-07-07 20:52 UTC, Mathieu Duponchelle
reviewed Details | Review

Description Mathieu Duponchelle 2017-07-07 20:44:57 UTC
decodebin2 now emits a signal that uridecodebin relays,
letting the application decide whether a stream should be
discarded altogether, thus exposing no pad for it.

An example use case is an application that doesn't want
to filter streams based on their caps, but based on their
stream ids. It will thus wait for the signal to be emitted
with the source pad of a demuxer, and return TRUE if its
stream id is not wanted.
Comment 1 Mathieu Duponchelle 2017-07-07 20:45:01 UTC
Created attachment 355122 [details] [review]
*decodebin: [API]: autoplug-discard
Comment 2 Mathieu Duponchelle 2017-07-07 20:52:38 UTC
Created attachment 355124 [details] [review]
*decodebin: [API]: autoplug-discard

decodebin2 now emits a signal that uridecodebin relays,
letting the application decide whether a stream should be
discarded altogether, thus exposing no pad for it.

An example use case is an application that doesn't want
to filter streams based on their caps, but based on their
stream ids. It will thus wait for the signal to be emitted
with the source pad of a demuxer, and return TRUE if its
stream id is not wanted.
Comment 3 Sebastian Dröge (slomo) 2017-07-10 07:12:54 UTC
Comment on attachment 355124 [details] [review]
*decodebin: [API]: autoplug-discard

Isn't this equivalent to returning GST_AUTOPLUG_SELECT_SKIP from autoplug-select?
Comment 4 Mathieu Duponchelle 2018-06-18 22:47:31 UTC
(In reply to Sebastian Dröge (slomo) from comment #3)
> Comment on attachment 355124 [details] [review] [review]
> *decodebin: [API]: autoplug-discard
> 
> Isn't this equivalent to returning GST_AUTOPLUG_SELECT_SKIP from
> autoplug-select?

Just had a similar use case so I've been able to test it, yes, autoplug-select fits the use case too, we can close WONTFIX :)