[Bug 691370] New: caps intersectio is broken for channel-layout

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Tue Jan 8 15:04:47 PST 2013


https://bugzilla.gnome.org/show_bug.cgi?id=691370
  GStreamer | gstreamer (core) | git

           Summary: caps intersectio is broken for channel-layout
    Classification: Platform
           Product: GStreamer
           Version: git
        OS/Version: All
            Status: UNCONFIRMED
          Severity: major
          Priority: Normal
         Component: gstreamer (core)
        AssignedTo: gstreamer-bugs at lists.freedesktop.org
        ReportedBy: matej.knopp at gmail.com
         QAContact: gstreamer-bugs at lists.freedesktop.org
     GNOME version: ---


Channel layout currently uses bitmask, but this breaks caps intersection.
Example:

caps1 = [ { channels: 4, layout: FL, FR, RL, RR },  { channels: 4, layout: FL,
FR, SL, SR } ]
caps2 =  { channels: 4, layout: FL, FR, SL, SR }

I  assume, that after gst_caps_intersect I should get
intersection =  { channels: 4, layout: FL, FR, SL, SR }   // same as second
struct of caps1

This is not the case though, what I really get is
 [ { channels: 4, layout: FL, FR },  { channels: 4, layout: FL, FR } ]

This probably happens because GST_BITMASK intersection is done using bitwise
and.

-- 
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- 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