diff options
author | Benjamin Otte <otte@gnome.org> | 2009-09-18 22:27:25 +0200 |
---|---|---|
committer | Benjamin Otte <otte@gnome.org> | 2009-09-18 22:27:25 +0200 |
commit | 8e73251546ba2079458850d3295a65342abb094f (patch) | |
tree | f9ab4aeb588f4d4bcc8ba0e9710d8b1d689e837a /gst-libs | |
parent | b1f8afa73937d95b4c34a09302b73af22f4cb7ab (diff) |
Don't export GST_CAIRO_CAPS_ANY
The supported cairo caps can dynamically change with new versions. So
don't export them as a static string.
Adapt plugin to not use static pad templates.
Diffstat (limited to 'gst-libs')
-rw-r--r-- | gst-libs/gst/cairo/gstcairocaps.c | 2 | ||||
-rw-r--r-- | gst-libs/gst/cairo/gstcairocaps.h | 5 |
2 files changed, 5 insertions, 2 deletions
diff --git a/gst-libs/gst/cairo/gstcairocaps.c b/gst-libs/gst/cairo/gstcairocaps.c index 499bb8d..d2f9e8d 100644 --- a/gst-libs/gst/cairo/gstcairocaps.c +++ b/gst-libs/gst/cairo/gstcairocaps.c @@ -29,6 +29,8 @@ #include <gobject/gvaluecollector.h> #include <gst/video/video.h> +#include "gstcairocapsany.h" + /* huge map of pango format => caps */ struct { diff --git a/gst-libs/gst/cairo/gstcairocaps.h b/gst-libs/gst/cairo/gstcairocaps.h index a5deff8..ce95f8b 100644 --- a/gst-libs/gst/cairo/gstcairocaps.h +++ b/gst-libs/gst/cairo/gstcairocaps.h @@ -26,8 +26,6 @@ G_BEGIN_DECLS -#include "gstcairocapsany.h" - typedef enum { GST_CAIRO_FORMAT_FORMAT = (1 << 0), GST_CAIRO_FORMAT_WIDTH = (1 << 1), @@ -60,6 +58,9 @@ GstCaps * gst_cairo_caps_new_any (void); GstCaps * gst_cairo_format_to_caps (const GstCairoFormat * format, GstCairoFormatOption fixed); +#define gst_cairo_pad_template_new(name,dir,presence) \ + gst_pad_template_new ((name), (dir), (presence), gst_cairo_caps_new_any ()) + gsize gst_cairo_format_get_buffer_size (const GstCairoFormat * format); gsize gst_cairo_format_get_stride (const GstCairoFormat * format, guint plane); |