GNOME Bugzilla – Bug 749605
vaapidecodebin needs removal too in thumbnailer (blacklist was vaapidecode only)
Last modified: 2015-08-28 10:20:30 UTC
To let totem thumbnailer process mpeg2 files I have when gsteamer-vaapi master is installed I have to add in thumb_app_setup_play src/totem-video-thumbnailer.c : feature = gst_registry_find_feature (registry, "vaapidecodebin", GST_TYPE_ELEMENT_FACTORY); if (!feature) return; gst_registry_remove_feature (registry, feature); after: feature = gst_registry_find_feature (registry, "vaapidecode", GST_TYPE_ELEMENT_FACTORY); if (!feature) return; gst_registry_remove_feature (registry, feature); As current gstreamer-vaapi mpeg2 decoder also has a segfault when seek flush (the sequence header is set to null then dereferenced in parse_slice/decode_slice) this also avoid a segfault in the before mentionned parse/decode slice of vaapi.
Created attachment 309476 [details] [review] blacklist vaapidecodebin for thumbnails
Review of attachment 309476 [details] [review]: The commit message has all the right words, but in the wrong order, and you forgot to conjugate the verb. ::: src/totem-video-thumbnailer.c @@ +419,3 @@ + GST_TYPE_ELEMENT_FACTORY); + if (!feature) + return; You broke older version of gst-vaapi here.
Created attachment 310168 [details] [review] thumbnailer: Also blacklist new vaapidecodebin Since the new version of gstreamer-vaapi ships vaapidecodebin and not vaapidecode, the work-around added in commit bd2b876f13aa97e9c4faa917b1b2e0a51c2da8ac fails to blacklist vaapi.
Attachment 310168 [details] pushed as cc43a50 - thumbnailer: Also blacklist new vaapidecodebin