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 790491 - tidy up blacklisting and blacklist V4L2
tidy up blacklisting and blacklist V4L2
Status: RESOLVED FIXED
Product: totem
Classification: Core
Component: Thumbnailer
unspecified
Other All
: Normal normal
: ---
Assigned To: General Totem maintainer(s)
General Totem maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2017-11-17 11:21 UTC by robert
Modified: 2017-11-20 11:10 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
thumbnailer: blacklist GStreamer plugins rather than features (1.85 KB, patch)
2017-11-17 11:21 UTC, robert
committed Details | Review
thumbnailer: blacklist video4linux2 plugin (924 bytes, patch)
2017-11-17 11:22 UTC, robert
committed Details | Review

Description robert 2017-11-17 11:21:50 UTC
Blacklisting by GstPluginFeature means we need to "chase" different codec
names as new codecs are added to vaapi, element names change in different
releases, etc, and makes it inpractical to blacklist plugins with variable
element names - eg the available video4linux2 m2m decoder blocks are
dynamically probed and discovered at runtime.

Switching the blacklist to disable entire plugins at a time makes the code
simpler and easier to maintain, and allows us to blacklist V4L2 where using
the HW decoder for thumbnailing blocks hardware resources and can prevent the
user from getting HW decode if they are trying to play a video while
thumbnailing is going on in the background.
Comment 1 robert 2017-11-17 11:21:54 UTC
Created attachment 363913 [details] [review]
thumbnailer: blacklist GStreamer plugins rather than features

This avoids the need to check multiple entries and changing feature
names in upstream GStreamer.
Comment 2 robert 2017-11-17 11:22:01 UTC
Created attachment 363914 [details] [review]
thumbnailer: blacklist video4linux2 plugin

On most V4L2 platforms supported by GStreamer, there are a finite number
of M2M decoders and if the thumbnailer is using them, it prevents the
user from playing back their real video.
Comment 3 Philip Withnall 2017-11-17 11:32:23 UTC
(See bug #790457 for the same change in Tracker.)
Comment 4 Bastien Nocera 2017-11-20 10:55:12 UTC
Both look good, thanks. Use upper case after the colon in the commit subject though.
Comment 5 robert 2017-11-20 11:10:16 UTC
Done, merged!