diff --git a/ext/ogg/gstoggdemux.c b/ext/ogg/gstoggdemux.c index cc09cf33c4..7d267d89dd 100644 --- a/ext/ogg/gstoggdemux.c +++ b/ext/ogg/gstoggdemux.c @@ -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; diff --git a/ext/ogg/gstoggdemux.h b/ext/ogg/gstoggdemux.h index 62e678c28e..017c43f8c2 100644 --- a/ext/ogg/gstoggdemux.h +++ b/ext/ogg/gstoggdemux.h @@ -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 */