gst/real/gstrealvideodec.*: Remove some old unused vars.

Original commit message from CVS:
* 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.
This commit is contained in:
Wim Taymans 2007-08-07 15:21:17 +00:00
parent 9cf09a5871
commit 966bbca4bc
3 changed files with 8 additions and 22 deletions

View file

@ -1,3 +1,11 @@
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> 2007-08-07 Wim Taymans <wim.taymans@gmail.com>
* gst/real/gstrealaudiodec.c: (gst_real_audio_dec_setcaps): * gst/real/gstrealaudiodec.c: (gst_real_audio_dec_setcaps):

View file

@ -202,10 +202,6 @@ could_not_push:
static gboolean static gboolean
gst_real_video_dec_activate_push (GstPad * pad, gboolean active) 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; 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"); dec->src = gst_pad_new_from_static_template (&src_t, "src");
gst_pad_use_fixed_caps (dec->src); gst_pad_use_fixed_caps (dec->src);
gst_element_add_pad (GST_ELEMENT (dec), dec->src); gst_element_add_pad (GST_ELEMENT (dec), dec->src);
dec->adapter = gst_adapter_new ();
} }
static void static void
@ -487,11 +481,6 @@ gst_real_video_dec_finalize (GObject * object)
{ {
GstRealVideoDec *dec = GST_REAL_VIDEO_DEC (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); close_library (dec->hooks);
memset (&dec->hooks, 0, sizeof (dec->hooks)); memset (&dec->hooks, 0, sizeof (dec->hooks));

View file

@ -65,20 +65,9 @@ struct _GstRealVideoDec
gint format, subformat; gint format, subformat;
gint framerate_num, framerate_denom; gint framerate_num, framerate_denom;
/* Variables needed for fixing timestamps. */
GstClockTime next_ts, last_ts;
guint16 next_seq, last_seq;
/* Hooks */ /* Hooks */
GstRealVideoDecHooks hooks; GstRealVideoDecHooks hooks;
/* State */
GstAdapter *adapter;
guint8 seqnum, subseq;
guint16 length;
guint32 fragment_count;
guint32 fragments[256];
/* Properties */ /* Properties */
gchar *real_codecs_path, *rv20_names, *rv30_names, *rv40_names; gchar *real_codecs_path, *rv20_names, *rv30_names, *rv40_names;
}; };