Use GST_VIDEO_CAPS_RGB for the template caps

This commit is contained in:
Sebastian Dröge 2009-02-05 17:00:30 +01:00
parent a0e06b965a
commit aba72fcce9
2 changed files with 6 additions and 4 deletions

View file

@ -1,8 +1,8 @@
plugin_LTLIBRARIES = libgstassrender.la
libgstassrender_la_SOURCES = gstassrender.c
libgstassrender_la_CFLAGS = $(GST_CFLAGS) $(ASSRENDER_CFLAGS)
libgstassrender_la_LIBADD = $(ASSRENDER_LIBS) $(GST_LIBS)
libgstassrender_la_CFLAGS = $(GST_CFLAGS) $(GST_PLUGINS_BASE_CFLAGS) $(ASSRENDER_CFLAGS)
libgstassrender_la_LIBADD = $(ASSRENDER_LIBS) $(GST_PLUGINS_BASE_LIBS) $(GST_LIBS) -lgstvideo-@GST_MAJORMINOR@
libgstassrender_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS)
libgstassrender_la_LIBTOOLFLAGS = --tag=disable-static

View file

@ -23,6 +23,8 @@
#include "gstassrender.h"
#include <gst/video/video.h>
GST_DEBUG_CATEGORY_STATIC (gst_assrender_debug);
#define GST_CAT_DEFAULT gst_assrender_debug
@ -42,14 +44,14 @@ enum
static GstStaticPadTemplate src_factory = GST_STATIC_PAD_TEMPLATE ("src",
GST_PAD_SRC,
GST_PAD_ALWAYS,
GST_STATIC_CAPS ("video/x-raw-rgb, bpp=24")
GST_STATIC_CAPS (GST_VIDEO_CAPS_RGB)
);
static GstStaticPadTemplate video_sink_factory =
GST_STATIC_PAD_TEMPLATE ("video_sink",
GST_PAD_SINK,
GST_PAD_ALWAYS,
GST_STATIC_CAPS ("video/x-raw-rgb, bpp=24")
GST_STATIC_CAPS (GST_VIDEO_CAPS_RGB)
);
static GstStaticPadTemplate text_sink_factory =