1 /* GStreamer concat element
3 * Copyright (c) 2014 Sebastian Dröge <sebastian@centricular.com>
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.
22 #ifndef __GST_CONCAT_H__
23 #define __GST_CONCAT_H__
29 #define GST_TYPE_CONCAT (gst_concat_get_type())
30 #define GST_CONCAT(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), GST_TYPE_CONCAT, GstConcat))
31 #define GST_CONCAT_CAST(obj) ((GstConcat*)obj)
32 #define GST_CONCAT_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST((klass), GST_TYPE_CONCAT,GstConcatClass))
33 #define GST_IS_CONCAT(obj) (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_CONCAT))
34 #define GST_IS_CONCAT_CLASS(obj) (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_CONCAT))
36 typedef struct _GstConcat GstConcat;
37 typedef struct _GstConcatClass GstConcatClass;
42 * The private concat structure
51 GList *sinkpads; /* Last is earliest */
52 GstPad *current_sinkpad;
56 /* Format we're operating in */
58 /* In format, running time or accumulated byte offset */
59 guint64 current_start_offset;
60 /* Between current pad's segment start and stop */
66 struct _GstConcatClass
68 GstElementClass parent_class;
71 G_GNUC_INTERNAL GType gst_concat_get_type (void);
75 #endif /* __GST_CONCAT_H__ */