[Bug 703659] New: allocators: dmabuf: allow testing allocator type

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Fri Jul 5 07:35:04 PDT 2013


https://bugzilla.gnome.org/show_bug.cgi?id=703659
  GStreamer | gst-plugins-base | 1.x

           Summary: allocators: dmabuf: allow testing allocator type
    Classification: Platform
           Product: GStreamer
           Version: 1.x
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: Normal
         Component: gst-plugins-base
        AssignedTo: gstreamer-bugs at lists.freedesktop.org
        ReportedBy: benjamin.gaignard at gmail.com
         QAContact: gstreamer-bugs at lists.freedesktop.org
     GNOME version: ---


Created an attachment (id=248464)
 View: https://bugzilla.gnome.org/attachment.cgi?id=248464
 Review: https://bugzilla.gnome.org/review?bug=703659&attachment=248464

allocators: dmabuf: allow testing allocator type

In decide_allocation function some element may when to test the proposed
allocator type.

For example like this:
if (gst_query_get_n_allocation_params (query) > 0) {
    GstAllocator * allocator;
    GstAllocationParams params;
    gst_query_parse_nth_allocation_param (query, 0, &allocator, &params);
    if (gst_is_dmabuf_allocator(allocator))
        GST_DEBUG("got dmabuf allocator");
    else
        GST_DEBUG("got an other allocator");
}

This patch add gst_is_dmabuf_allocator function and fix indentation in .h file.

-- 
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