summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog8
-rw-r--r--gst/real/gstrealvideodec.c11
-rw-r--r--gst/real/gstrealvideodec.h11
3 files changed, 8 insertions, 22 deletions
diff --git a/ChangeLog b/ChangeLog
index cdaf56eb..69fd9325 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,13 @@
2007-08-07 Wim Taymans <wim.taymans@gmail.com>
+ * gst/real/gstrealvideodec.c: (gst_real_video_dec_chain),
+ (gst_real_video_dec_activate_push), (open_library),
+ (gst_real_video_dec_init), (gst_real_video_dec_finalize):
+ * gst/real/gstrealvideodec.h:
+ Remove some old unused vars.
+
+2007-08-07 Wim Taymans <wim.taymans@gmail.com>
+
* gst/real/gstrealaudiodec.c: (gst_real_audio_dec_setcaps):
Small cleanups.
diff --git a/gst/real/gstrealvideodec.c b/gst/real/gstrealvideodec.c
index 076918fb..67537f7c 100644
--- a/gst/real/gstrealvideodec.c
+++ b/gst/real/gstrealvideodec.c
@@ -202,10 +202,6 @@ could_not_push:
static gboolean
gst_real_video_dec_activate_push (GstPad * pad, gboolean active)
{
- GstRealVideoDec *dec = GST_REAL_VIDEO_DEC (GST_PAD_PARENT (pad));
-
- gst_adapter_clear (dec->adapter);
-
return TRUE;
}
@@ -468,8 +464,6 @@ gst_real_video_dec_init (GstRealVideoDec * dec, GstRealVideoDecClass * klass)
dec->src = gst_pad_new_from_static_template (&src_t, "src");
gst_pad_use_fixed_caps (dec->src);
gst_element_add_pad (GST_ELEMENT (dec), dec->src);
-
- dec->adapter = gst_adapter_new ();
}
static void
@@ -487,11 +481,6 @@ gst_real_video_dec_finalize (GObject * object)
{
GstRealVideoDec *dec = GST_REAL_VIDEO_DEC (object);
- if (dec->adapter) {
- g_object_unref (G_OBJECT (dec->adapter));
- dec->adapter = NULL;
- }
-
close_library (dec->hooks);
memset (&dec->hooks, 0, sizeof (dec->hooks));
diff --git a/gst/real/gstrealvideodec.h b/gst/real/gstrealvideodec.h
index 641f39bc..db2496f4 100644
--- a/gst/real/gstrealvideodec.h
+++ b/gst/real/gstrealvideodec.h
@@ -65,20 +65,9 @@ struct _GstRealVideoDec
gint format, subformat;
gint framerate_num, framerate_denom;
- /* Variables needed for fixing timestamps. */
- GstClockTime next_ts, last_ts;
- guint16 next_seq, last_seq;
-
/* Hooks */
GstRealVideoDecHooks hooks;
- /* State */
- GstAdapter *adapter;
- guint8 seqnum, subseq;
- guint16 length;
- guint32 fragment_count;
- guint32 fragments[256];
-
/* Properties */
gchar *real_codecs_path, *rv20_names, *rv30_names, *rv40_names;
};