Tizen 2.0 Release
[framework/multimedia/gst-plugins-bad0.10.git] / ext / sdl / gstsdl.c
1 /* GStreamer
2  * Copyright (C) <2005> Edgard Lima <edgard.lima@indt.org.br>
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Library General Public
6  * License as published by the Free Software Foundation; either
7  * version 2 of the License, or (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12  * Library General Public License for more 
13  */
14
15 #ifdef HAVE_CONFIG_H
16 #include "config.h"
17 #endif
18
19 #include "sdlvideosink.h"
20 #include "sdlaudiosink.h"
21
22
23 GST_DEBUG_CATEGORY (sdl_debug);
24
25 static gboolean
26 plugin_init (GstPlugin * plugin)
27 {
28
29   if (!gst_element_register (plugin, "sdlvideosink", GST_RANK_NONE,
30           GST_TYPE_SDLVIDEOSINK) ||
31       !gst_element_register (plugin, "sdlaudiosink", GST_RANK_NONE,
32           GST_TYPE_SDLAUDIOSINK)) {
33     return FALSE;
34   }
35
36   GST_DEBUG_CATEGORY_INIT (sdl_debug, "sdl", 0, "SDL elements");
37
38   return TRUE;
39 }
40
41 GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
42     GST_VERSION_MINOR,
43     "sdl",
44     "SDL (Simple DirectMedia Layer) support for GStreamer",
45     plugin_init, VERSION, "LGPL", GST_PACKAGE_NAME, GST_PACKAGE_ORIGIN)