1
/* GStreamer tag muxer base class
3
* Copyright (C) 2006 Christophe Fergeau <teuf@gnome.org>
4
* Copyright (C) 2006 Tim-Philipp Müller <tim centricular net>
5
* Copyright (C) 2009 Pioneers of the Inevitable <songbird@songbirdnest.com>
7
* This library is free software; you can redistribute it and/or
8
* modify it under the terms of the GNU Library General Public
9
* License as published by the Free Software Foundation; either
10
* version 2 of the License, or (at your option) any later version.
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
* Library General Public License for more details.
17
* You should have received a copy of the GNU Library General Public
18
* License along with this library; if not, write to the
19
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
20
* Boston, MA 02111-1307, USA.
30
typedef struct _GstTagMux GstTagMux;
31
typedef struct _GstTagMuxClass GstTagMuxClass;
33
/* Definition of structure storing data for this element. */
39
GstTagList *event_tags; /* tags received from upstream elements */
40
GstTagList *final_tags; /* Final set of tags used for muxing */
43
gboolean render_start_tag;
44
gboolean render_end_tag;
46
gint64 current_offset;
49
GstEvent *newsegment_ev; /* cached newsegment event from upstream */
52
/* Standard definition defining a class for this element. */
53
struct _GstTagMuxClass {
54
GstElementClass parent_class;
57
GstBuffer * (*render_start_tag) (GstTagMux * mux, GstTagList * tag_list);
58
GstBuffer * (*render_end_tag) (GstTagMux * mux, GstTagList * tag_list);
61
/* Standard macros for defining types for this element. */
62
#define GST_TYPE_TAG_MUX \
63
(gst_tag_mux_get_type())
64
#define GST_TAG_MUX(obj) \
65
(G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_TAG_MUX,GstTagMux))
66
#define GST_TAG_MUX_CLASS(klass) \
67
(G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_TAG_MUX,GstTagMuxClass))
68
#define GST_IS_TAG_MUX(obj) \
69
(G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_TAG_MUX))
70
#define GST_IS_TAG_MUX_CLASS(klass) \
71
(G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_TAG_MUX))
73
/* Standard function returning type information. */
74
GType gst_tag_mux_get_type (void);