oggdemux: remove unused GstOggPadMode enum

This commit is contained in:
Tim-Philipp Müller 2012-05-12 14:22:23 +01:00
parent b9f8a26f62
commit 882ffc7b98
2 changed files with 0 additions and 19 deletions

View file

@ -176,8 +176,6 @@ gst_ogg_pad_init (GstOggPad * pad)
GST_DEBUG_FUNCPTR (gst_ogg_pad_src_query));
gst_pad_use_fixed_caps (GST_PAD (pad));
pad->mode = GST_OGG_PAD_MODE_INIT;
pad->current_granule = -1;
pad->keyframe_granule = -1;
@ -3714,15 +3712,6 @@ gst_ogg_demux_read_chain (GstOggDemux * ogg, GstOggChain ** res_chain)
}
}
GST_LOG_OBJECT (ogg, "done reading chain");
/* now we can fill in the missing info using queries */
for (i = 0; i < chain->streams->len; i++) {
GstOggPad *pad = g_array_index (chain->streams, GstOggPad *, i);
if (pad->map.is_skeleton)
continue;
pad->mode = GST_OGG_PAD_MODE_STREAMING;
}
if (res_chain)
*res_chain = chain;

View file

@ -74,20 +74,12 @@ struct _GstOggChain
streams. */
};
/* different modes for the pad */
typedef enum
{
GST_OGG_PAD_MODE_INIT, /* we are feeding our internal decoder to get info */
GST_OGG_PAD_MODE_STREAMING, /* we are streaming buffers to the outside */
} GstOggPadMode;
/* all information needed for one ogg stream */
struct _GstOggPad
{
GstPad pad; /* subclass GstPad */
gboolean have_type;
GstOggPadMode mode;
GstOggChain *chain; /* the chain we are part of */
GstOggDemux *ogg; /* the ogg demuxer we are part of */