From 1874bf59104926432488a10ae89bbb87c4ea6971 Mon Sep 17 00:00:00 2001 From: Mark Nauwelaerts Date: Mon, 22 Jun 2009 18:53:56 +0200 Subject: [PATCH] asfdemux: remove some more unused variables --- gst/asfdemux/gstasfdemux.c | 14 -------------- gst/asfdemux/gstasfdemux.h | 8 -------- 2 files changed, 22 deletions(-) diff --git a/gst/asfdemux/gstasfdemux.c b/gst/asfdemux/gstasfdemux.c index e1babf493c..e056509b37 100644 --- a/gst/asfdemux/gstasfdemux.c +++ b/gst/asfdemux/gstasfdemux.c @@ -144,8 +144,6 @@ gst_asf_demux_class_init (GstASFDemuxClass * klass) static void gst_asf_demux_free_stream (GstASFDemux * demux, AsfStream * stream) { - gst_buffer_replace (&stream->cache, NULL); - gst_buffer_replace (&stream->payload, NULL); gst_caps_replace (&stream->caps, NULL); if (stream->pending_tags) { gst_tag_list_free (stream->pending_tags); @@ -417,12 +415,6 @@ gst_asf_demux_reset_stream_state_after_discont (GstASFDemux * demux) GST_DEBUG_OBJECT (demux, "reset stream state"); for (n = 0; n < demux->num_streams; n++) { - gst_buffer_replace (&demux->stream[n].payload, NULL); - gst_buffer_replace (&demux->stream[n].cache, NULL); - demux->stream[n].frag_offset = 0; - demux->stream[n].last_pts = GST_CLOCK_TIME_NONE; - demux->stream[n].last_buffer_timestamp = GST_CLOCK_TIME_NONE; - demux->stream[n].sequence = 0; demux->stream[n].discont = TRUE; demux->stream[n].last_flow = GST_FLOW_OK; @@ -1759,12 +1751,6 @@ gst_asf_demux_setup_pad (GstASFDemux * demux, GstPad * src_pad, stream->caps = caps; stream->pad = src_pad; stream->id = id; - stream->frag_offset = 0; - stream->sequence = 0; - stream->delay = 0; - stream->first_pts = GST_CLOCK_TIME_NONE; - stream->last_pts = GST_CLOCK_TIME_NONE; - stream->last_buffer_timestamp = GST_CLOCK_TIME_NONE; stream->fps_known = !is_video; /* bit hacky for audio */ stream->is_video = is_video; stream->pending_tags = tags; diff --git a/gst/asfdemux/gstasfdemux.h b/gst/asfdemux/gstasfdemux.h index 18d38ef7a1..66afabd953 100644 --- a/gst/asfdemux/gstasfdemux.h +++ b/gst/asfdemux/gstasfdemux.h @@ -83,18 +83,10 @@ typedef struct GstPad *pad; guint16 id; - guint32 frag_offset; - guint32 sequence; - guint64 delay; - guint64 first_pts; - guint64 last_pts; /* FIXME: remove, not actually evaluated */ - GstBuffer *payload; /* video-only */ - guint64 last_buffer_timestamp; /* timestamp of last buffer sent out */ gboolean is_video; gboolean fps_known; - GstBuffer *cache; GstCaps *caps;