summaryrefslogtreecommitdiff
path: root/sys/dxr3/gstdxr3.c
blob: 594afd89cc37792f8658bd0bef9fa17ad1e97a56 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#include "gstdxr3video.h"


static GstElementDetails dxr3_video_sink_details = {
  "dxr3/Hollywood+ mpeg decoder board plugin",
  "video/mpeg",
  "Outputs PAL/NTSC video via the dxr3/Hollywood+ mpeg decoder board",
  VERSION,
  "Rehan Khwaja <rehankhwaja@yahoo.com>",
  "(C) 2002",
};


static gboolean
plugin_init (GModule *module, GstPlugin *plugin)
{
  GstElementFactory *video_factory;

  video_factory = gst_elementfactory_new("dxr3videosink", GST_TYPE_DXR3_VIDEO_SINK, &dxr3_video_sink_details);
  g_return_val_if_fail(video_factory != NULL, FALSE);

  gst_elementfactory_add_padtemplate (video_factory, GST_PADTEMPLATE_GET (dxr3_video_sink_factory));

  gst_plugin_add_feature (plugin, GST_PLUGIN_FEATURE (video_factory));

  return TRUE;
}


GstPluginDesc plugin_desc = {
  GST_VERSION_MAJOR,
  GST_VERSION_MINOR,
  "dxr3",
  plugin_init
};