1 /*
2 * gstrtponvif.c
3 *
4 * Copyright (C) 2014 Axis Communications AB
5 * Author: Guillaume Desmottes <guillaume.desmottes@collabora.com>
6 *
7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public
9 * License as published by the Free Software Foundation; either
10 * version 2.1 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 * Lesser General Public License for more details.
16 *
17 * You should have received a copy of the GNU Lesser General Public
18 * License along with this library; if not, see <http://www.gnu.org/licenses/>.
19 */
20
21 #ifdef HAVE_CONFIG_H
22 #include "config.h"
23 #endif
24
25 #include <gst/gst.h>
26
27 #include "gstrtponviftimestamp.h"
28 #include "gstrtponvifparse.h"
29
30 static gboolean
plugin_init(GstPlugin * plugin)31 plugin_init (GstPlugin * plugin)
32 {
33 if (!gst_element_register (plugin, "rtponviftimestamp", GST_RANK_NONE,
34 GST_TYPE_RTP_ONVIF_TIMESTAMP))
35 return FALSE;
36 if (!gst_element_register (plugin, "rtponvifparse", GST_RANK_NONE,
37 GST_TYPE_RTP_ONVIF_PARSE))
38 return FALSE;
39
40 return TRUE;
41 }
42
43 GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
44 GST_VERSION_MINOR,
45 rtponvif,
46 "ONVIF Streaming features",
47 plugin_init, VERSION, GST_LICENSE_UNKNOWN, GST_PACKAGE_NAME,
48 GST_PACKAGE_ORIGIN)
49