1 /* Copyright 2005 Jan Schmidt <thaytan@mad.scientist.com>
2 * 2006 Michael Smith <msmith@fluendo.com>
3 * Copyright (C) 2003-2004 Benjamin Otte <otte@gnome.org>
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., 59 Temple Place - Suite 330,
18 * Boston, MA 02111-1307, USA.
21 #ifndef __GST_ICYDEMUX_H__
22 #define __GST_ICYDEMUX_H__
25 #include <gst/base/gstadapter.h>
26 #include <gst/base/gsttypefindhelper.h>
30 #define GST_TYPE_ICYDEMUX \
31 (gst_icydemux_get_type())
32 #define GST_ICYDEMUX(obj) \
33 (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_ICYDEMUX,GstICYDemux))
34 #define GST_ICYDEMUX_CLASS(klass) \
35 (G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_ICYDEMUX,GstICYDemuxClass))
36 #define GST_IS_ICYDEMUX(obj) \
37 (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_ICYDEMUX))
38 #define GST_IS_ICYDEMUX_CLASS(klass) \
39 (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_ICYDEMUX))
41 typedef struct _GstICYDemux GstICYDemux;
42 typedef struct _GstICYDemuxClass GstICYDemuxClass;
48 GstPad *sinkpad, *srcpad;
50 /* Interval between metadata updates */
53 /* Remaining bytes until the next metadata update */
56 /* When 'remaining' is zero, this holds the number of bytes of metadata we
57 * still need to read, or zero if we don't yet know (which means we need to
58 * read one byte, after which we can initialise this properly) */
61 /* Caps for the data enclosed */
64 /* True if we're still typefinding */
67 GstTagList *cached_tags;
70 GstAdapter *meta_adapter;
72 GstBuffer *typefind_buf;
74 /* upstream HTTP Content-Type */
78 struct _GstICYDemuxClass
80 GstElementClass parent_class;
83 GType gst_icydemux_get_type (void);
87 #endif /* __GST_ICYDEMUX_H__ */