1 /* GStreamer Editing Services
2 * Copyright (C) 2009 Edward Hervey <edward.hervey@collabora.co.uk>
3 * 2009 Nokia Corporation
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version.
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Library General Public License for more details.
15 * You should have received a copy of the GNU Library General Public
16 * License along with this library; if not, write to the
17 * Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
18 * Boston, MA 02110-1301, USA.
23 #include <glib-object.h>
25 #include <ges/ges-types.h>
26 #include <ges/ges-track-element.h>
30 #define GES_TYPE_SOURCE ges_source_get_type()
31 GES_DECLARE_TYPE(Source, source, SOURCE);
36 * Base class for single-media sources
41 GESTrackElement parent;
43 GESSourcePrivate *priv;
45 /* Padding for API extension */
46 gpointer _ges_reserved[GES_PADDING];
51 * @create_source: method to return the GstElement to put in the source topbin.
54 struct _GESSourceClass {
56 GESTrackElementClass parent_class;
59 * GESSourceClass::select_pad:
60 * @source: The @source for which to check if @pad should be used or not
61 * @pad: The pad to check
63 * Check whether @pad should be exposed/used.
65 * Returns: %TRUE if @pad should be used %FALSE otherwise.
69 gboolean (*select_pad)(GESSource *source, GstPad *pad);
71 /* Padding for API extension */
72 gpointer _ges_reserved[GES_PADDING - 1];