Policy element integration
[profile/ivi/gst-plugins-base.git] / gst / policy / gstdefaultpolicy.c
1 /* GStreamer
2  * Copyright (C) <2012> Intel Corporation
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 details.
13  *
14  * You should have received a copy of the GNU Library General Public
15  * License along with this library; if not, write to the
16  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17  * Boston, MA 02111-1307, USA.
18  */
19
20
21 /**
22  * SECTION:element-defaultpolicy
23  * @see_also: autopolicy
24  *
25  * Defaultpolicy implements a default policy, which does nothing at all with the
26  * stream. It's the element that autopolicy element selects in the absence of any
27  * other policy element.
28  *
29  * <refsect2>
30  * <title>Example launch line (with policy-specific debugging)</title>
31  * |[
32  * gst-launch -v -m --gst-debug=policy:5 fakesrc ! defaultpolicy role=testrole ! fakesink silent=TRUE
33  * ]|
34  * </refsect2>
35  * <refsect2>
36  * </refsect2>
37  */
38
39 #ifdef HAVE_CONFIG_H
40 #  include <config.h>
41 #endif
42
43 #include <gst/gst.h>
44
45 #include "gstdefaultpolicy.h"
46
47 #define gst_default_policy_parent_class parent_class
48 G_DEFINE_TYPE (GstDefaultPolicy, gst_default_policy, GST_TYPE_POLICY);
49
50 static void
51 gst_default_policy_class_init (GstDefaultPolicyClass * klass)
52 {
53   GstElementClass *gstelement_class;
54   const GstElementDetails details = {
55       (gchar *)"Default policy", 
56       (gchar *)"Policy",
57       (gchar *)"Default policy element that does nothing",
58       (gchar *)"Alexander Kanavin <alexander.kanavin@intel.com>"
59   };
60
61   gstelement_class = (GstElementClass *) klass;
62
63   gst_element_class_set_details (gstelement_class, &details);
64 }
65
66 static void
67 gst_default_policy_init (GstDefaultPolicy * policy)
68 {
69 }