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 768566 - encoding-profile: Unify caps cleanup code with the missing-plugins / descriptions code
encoding-profile: Unify caps cleanup code with the missing-plugins / descript...
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: 2016-07-08 12:48 UTC by Sebastian Dröge (slomo)
Modified: 2018-05-06 15:12 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
encoding-profile: Use common copy_and_clean_caps() function to clean up caps when creating an encoding profile from discoverer info (1.71 KB, patch)
2016-07-08 12:48 UTC, Sebastian Dröge (slomo)
needs-work Details | Review
missing-plugins: Remove some other fields when cleaning up caps (1.91 KB, patch)
2016-07-08 12:48 UTC, Sebastian Dröge (slomo)
committed Details | Review

Description Sebastian Dröge (slomo) 2016-07-08 12:48:46 UTC
See commit messages
Comment 1 Sebastian Dröge (slomo) 2016-07-08 12:48:50 UTC
Created attachment 331076 [details] [review]
encoding-profile: Use common copy_and_clean_caps() function to clean up caps when creating an encoding profile from discoverer info

It's also removing lots of other irrelevant fields.
Comment 2 Sebastian Dröge (slomo) 2016-07-08 12:48:56 UTC
Created attachment 331077 [details] [review]
missing-plugins: Remove some other fields when cleaning up caps

Caps are cleaned up for missing plugins, and for creating encoding profiles
and caps descriptions.

Fields like streamheader, parsed, framed, stream-format and alignment are not
relevant here. The last ones all because a parser will take care of them.
Comment 3 Sebastian Dröge (slomo) 2016-07-08 12:51:02 UTC
Review of attachment 331076 [details] [review]:

The main problem here now is that we would remove width/height/etc too... which is probably wanted for the "format" of the encoding-profile, but they should be part of the "restriction" (rescaling, etc). However it's not clear how we could generate the restriction caps here. Ideas?
Comment 4 Sebastian Dröge (slomo) 2016-07-08 13:44:54 UTC
commit 48324cab38397639143750c7f800e7bffa4eb009
Author: Sebastian Dröge <sebastian@centricular.com>
Date:   Fri Jul 8 16:43:05 2016 +0300

    encoding-profile: Remove some more fields from the caps when creating from discoverer info
    
    parsed, framed, stream-format and alignment are only relevant for parsers and
    should not matter here. We still want to be able to use an encoder that can
    only output byte-stream if the input was avc.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=768566

commit 0e7cdee6c817ced7eba90dbecc421d0638595317
Author: Sebastian Dröge <sebastian@centricular.com>
Date:   Fri Jul 8 15:45:25 2016 +0300

    missing-plugins: Remove some other fields when cleaning up caps
    
    Caps are cleaned up for missing plugins, and for creating encoding profiles
    and caps descriptions.
    
    Fields like streamheader, parsed, framed, stream-format and alignment are not
    relevant here. The last ones all because a parser will take care of them.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=768566
Comment 5 Sebastian Dröge (slomo) 2016-07-08 13:45:38 UTC
So what's missing here is to unify these caps cleanups.
Comment 6 Sebastian Dröge (slomo) 2018-05-06 15:12:36 UTC
Not easily doable and not that important. Not worth keeping this bug open