Menu
Home
Blog
Add-ons
Forum
Wiki
Developers
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
components
mediacore
gstreamer
gst-plugins
mozilla
mozillaplugin.cpp
Go to the documentation of this file.
1
/* GStreamer
2
* Copyright (C) <2010> Pioneers of the Inevitable <songbird@songbirdnest.com>
3
*
4
* Authors: Steve Lloyd <slloyd@songbirdnest.com>
5
* Michael Smith <msmith@songbirdnest.com>
6
*
7
* This library is free software; you can redistribute it and/or
8
* modify it under the terms of the GNU Library General Public
9
* License as published by the Free Software Foundation; either
10
* version 2 of the License, or (at your option) any later version.
11
*
12
* This library is distributed in the hope that it will be useful,
13
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15
* Library General Public License for more
16
*/
17
18
#ifdef HAVE_CONFIG_H
19
#include "config.h"
20
#endif
21
22
#include <gst/gst.h>
23
#include "
mozillaplugin.h
"
24
25
static
gboolean
26
plugin_init
(GstPlugin * plugin)
27
{
28
if
(!gst_element_register (plugin,
"mozillasrc"
, GST_RANK_PRIMARY+1,
29
GST_TYPE_MOZILLA_SRC
))
30
return
FALSE;
31
32
if
(!gst_element_register (plugin,
"mozillasink"
, GST_RANK_NONE,
33
GST_TYPE_MOZILLA_SINK
))
34
return
FALSE;
35
36
return
TRUE;
37
}
38
39
extern
"C"
{
40
GST_PLUGIN_DEFINE (
41
GST_VERSION_MAJOR,
42
GST_VERSION_MINOR,
43
"mozilla"
,
44
"Mozilla source and sink"
,
45
plugin_init
,
46
GST_MOZ_VERSION
,
47
GST_MOZ_LICENSE
,
48
GST_MOZ_PACKAGE
,
49
GST_MOZ_ORIGIN
50
)
51
}
GST_MOZ_VERSION
#define GST_MOZ_VERSION
Definition:
mozillaplugin.h:24
GST_MOZ_ORIGIN
#define GST_MOZ_ORIGIN
Definition:
mozillaplugin.h:27
GST_MOZ_PACKAGE
#define GST_MOZ_PACKAGE
Definition:
mozillaplugin.h:26
GST_TYPE_MOZILLA_SRC
#define GST_TYPE_MOZILLA_SRC
Definition:
mozillaplugin.h:31
plugin_init
static gboolean plugin_init(GstPlugin *plugin)
Definition:
mozillaplugin.cpp:26
mozillaplugin.h
GST_TYPE_MOZILLA_SINK
#define GST_TYPE_MOZILLA_SINK
Definition:
mozillaplugin.h:43
GST_MOZ_LICENSE
#define GST_MOZ_LICENSE
Definition:
mozillaplugin.h:25