2 * Copyright (C) <2012> Intel Corporation
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.
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.
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.
22 * SECTION:element-defaultpolicy
23 * @see_also: autopolicy
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.
30 * <title>Example launch line (with policy-specific debugging)</title>
32 * gst-launch -v -m --gst-debug=policy:5 fakesrc ! defaultpolicy role=testrole ! fakesink silent=TRUE
45 #include "gstdefaultpolicy.h"
47 #define gst_default_policy_parent_class parent_class
48 G_DEFINE_TYPE (GstDefaultPolicy, gst_default_policy, GST_TYPE_POLICY);
51 gst_default_policy_class_init (GstDefaultPolicyClass * klass)
53 GstElementClass *gstelement_class;
54 const GstElementDetails details = {
55 (gchar *)"Default policy",
57 (gchar *)"Default policy element that does nothing",
58 (gchar *)"Alexander Kanavin <alexander.kanavin@intel.com>"
61 gstelement_class = (GstElementClass *) klass;
63 gst_element_class_set_details (gstelement_class, &details);
67 gst_default_policy_init (GstDefaultPolicy * policy)