summaryrefslogtreecommitdiffstats
path: root/sys/vdpau/gstvdpaumpegdecoder.c
diff options
context:
space:
mode:
authorCarl-Anton Ingmarsson <ca.ingmarsson@gmail.com>2009-04-04 22:03:23 +0200
committerJan Schmidt <thaytan@noraisin.net>2009-06-20 15:21:25 +0100
commit3d4a340cfa134615164af6a93b7ce9d36b84f191 (patch)
tree6d9fbdbf8621f2c8cfab7d02aad989a89b3f8f87 /sys/vdpau/gstvdpaumpegdecoder.c
parent85158b07eabb0d8fe7e4f29b06ea447a54505ad8 (diff)
downloadgst-plugins-bad-3d4a340cfa134615164af6a93b7ce9d36b84f191.tar.gz
gst-plugins-bad-3d4a340cfa134615164af6a93b7ce9d36b84f191.tar.bz2
gst-plugins-bad-3d4a340cfa134615164af6a93b7ce9d36b84f191.zip
vdpau: move plugin definition to a new gstvdpau.c file fix up debug categories
Diffstat (limited to 'sys/vdpau/gstvdpaumpegdecoder.c')
-rw-r--r--sys/vdpau/gstvdpaumpegdecoder.c40
1 files changed, 5 insertions, 35 deletions
diff --git a/sys/vdpau/gstvdpaumpegdecoder.c b/sys/vdpau/gstvdpaumpegdecoder.c
index 80ee13ca..1c51389c 100644
--- a/sys/vdpau/gstvdpaumpegdecoder.c
+++ b/sys/vdpau/gstvdpaumpegdecoder.c
@@ -70,8 +70,11 @@ static GstStaticPadTemplate sink_factory = GST_STATIC_PAD_TEMPLATE ("sink",
"systemstream = (boolean) false, parsed = (boolean) true")
);
-GST_BOILERPLATE (GstVdpauMpegDecoder, gst_vdpau_mpeg_decoder, GstVdpauDecoder,
- GST_TYPE_VDPAU_DECODER);
+#define DEBUG_INIT(bla) \
+GST_DEBUG_CATEGORY_INIT (gst_vdpau_mpeg_decoder_debug, "vdpaumpegdecoder", 0, "VDPAU powered mpeg decoder");
+
+GST_BOILERPLATE_FULL (GstVdpauMpegDecoder, gst_vdpau_mpeg_decoder,
+ GstVdpauDecoder, GST_TYPE_VDPAU_DECODER, DEBUG_INIT);
static void gst_vdpau_mpeg_decoder_finalize (GObject * object);
static void gst_vdpau_mpeg_decoder_set_property (GObject * object,
@@ -457,36 +460,3 @@ gst_vdpau_mpeg_decoder_get_property (GObject * object, guint prop_id,
break;
}
}
-
-/* entry point to initialize the plug-in
- * initialize the plug-in itself
- * register the element factories and other features
- */
-static gboolean
-vdpaumpegdecoder_init (GstPlugin * vdpaumpegdecoder)
-{
- /* debug category for fltering log messages
- *
- * exchange the string 'Template vdpaumpegdecoder' with your description
- */
- GST_DEBUG_CATEGORY_INIT (gst_vdpau_mpeg_decoder_debug, "vdpaumpegdecoder",
- 0, "Template vdpaumpegdecoder");
-
- gst_element_register (vdpaumpegdecoder, "vdpaumpegdecoder",
- GST_RANK_NONE, GST_TYPE_VDPAU_MPEG_DECODER);
- gst_element_register (vdpaumpegdecoder, "vdpauvideoyuv",
- GST_RANK_NONE, GST_TYPE_VDPAU_VIDEO_YUV);
-
- return TRUE;
-}
-
-/* gstreamer looks for this structure to register vdpaumpegdecoders
- *
- * exchange the string 'Template vdpaumpegdecoder' with your vdpaumpegdecoder description
- */
-GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
- GST_VERSION_MINOR,
- "vdpaumpegdecoder",
- "Template vdpaumpegdecoder",
- vdpaumpegdecoder_init,
- VERSION, "LGPL", "GStreamer", "http://gstreamer.net/")