mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
Use GST_VIDEO_CAPS_RGB for the template caps
This commit is contained in:
parent
a0e06b965a
commit
aba72fcce9
2 changed files with 6 additions and 4 deletions
|
@ -1,8 +1,8 @@
|
||||||
plugin_LTLIBRARIES = libgstassrender.la
|
plugin_LTLIBRARIES = libgstassrender.la
|
||||||
|
|
||||||
libgstassrender_la_SOURCES = gstassrender.c
|
libgstassrender_la_SOURCES = gstassrender.c
|
||||||
libgstassrender_la_CFLAGS = $(GST_CFLAGS) $(ASSRENDER_CFLAGS)
|
libgstassrender_la_CFLAGS = $(GST_CFLAGS) $(GST_PLUGINS_BASE_CFLAGS) $(ASSRENDER_CFLAGS)
|
||||||
libgstassrender_la_LIBADD = $(ASSRENDER_LIBS) $(GST_LIBS)
|
libgstassrender_la_LIBADD = $(ASSRENDER_LIBS) $(GST_PLUGINS_BASE_LIBS) $(GST_LIBS) -lgstvideo-@GST_MAJORMINOR@
|
||||||
libgstassrender_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS)
|
libgstassrender_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS)
|
||||||
libgstassrender_la_LIBTOOLFLAGS = --tag=disable-static
|
libgstassrender_la_LIBTOOLFLAGS = --tag=disable-static
|
||||||
|
|
||||||
|
|
|
@ -23,6 +23,8 @@
|
||||||
|
|
||||||
#include "gstassrender.h"
|
#include "gstassrender.h"
|
||||||
|
|
||||||
|
#include <gst/video/video.h>
|
||||||
|
|
||||||
GST_DEBUG_CATEGORY_STATIC (gst_assrender_debug);
|
GST_DEBUG_CATEGORY_STATIC (gst_assrender_debug);
|
||||||
#define GST_CAT_DEFAULT gst_assrender_debug
|
#define GST_CAT_DEFAULT gst_assrender_debug
|
||||||
|
|
||||||
|
@ -42,14 +44,14 @@ enum
|
||||||
static GstStaticPadTemplate src_factory = GST_STATIC_PAD_TEMPLATE ("src",
|
static GstStaticPadTemplate src_factory = GST_STATIC_PAD_TEMPLATE ("src",
|
||||||
GST_PAD_SRC,
|
GST_PAD_SRC,
|
||||||
GST_PAD_ALWAYS,
|
GST_PAD_ALWAYS,
|
||||||
GST_STATIC_CAPS ("video/x-raw-rgb, bpp=24")
|
GST_STATIC_CAPS (GST_VIDEO_CAPS_RGB)
|
||||||
);
|
);
|
||||||
|
|
||||||
static GstStaticPadTemplate video_sink_factory =
|
static GstStaticPadTemplate video_sink_factory =
|
||||||
GST_STATIC_PAD_TEMPLATE ("video_sink",
|
GST_STATIC_PAD_TEMPLATE ("video_sink",
|
||||||
GST_PAD_SINK,
|
GST_PAD_SINK,
|
||||||
GST_PAD_ALWAYS,
|
GST_PAD_ALWAYS,
|
||||||
GST_STATIC_CAPS ("video/x-raw-rgb, bpp=24")
|
GST_STATIC_CAPS (GST_VIDEO_CAPS_RGB)
|
||||||
);
|
);
|
||||||
|
|
||||||
static GstStaticPadTemplate text_sink_factory =
|
static GstStaticPadTemplate text_sink_factory =
|
||||||
|
|
Loading…
Reference in a new issue