From bbccf23eed302607fd169a5843f043167a15041b Mon Sep 17 00:00:00 2001 From: David Schleef Date: Wed, 15 Sep 2004 19:29:24 +0000 Subject: configure.ac: remove NASM check, since we don't use it. Update dirac check to 0.4 Original commit message from CVS: * configure.ac: remove NASM check, since we don't use it. Update dirac check to 0.4 * ext/dirac/gstdiracdec.cc: update to current 0.4 API * gst/audioconvert/gstaudioconvert.c: (gst_audio_convert_link): Initialized variables. * gst/qtdemux/qtdemux.c: (gst_qtdemux_change_state), (gst_qtdemux_loop_header), (qtdemux_parse), (qtdemux_parse_trak), (gst_qtdemux_handle_esds), (qtdemux_audio_caps): Fix seeking, add SVQ3 format --- ext/dirac/gstdiracdec.cc | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) (limited to 'ext') diff --git a/ext/dirac/gstdiracdec.cc b/ext/dirac/gstdiracdec.cc index d5eb4a47..5a767c45 100644 --- a/ext/dirac/gstdiracdec.cc +++ b/ext/dirac/gstdiracdec.cc @@ -25,8 +25,8 @@ #include #include -#include -#include +#include +#include #define GST_TYPE_DIRACDEC \ (gst_diracdec_get_type()) @@ -51,6 +51,7 @@ struct _GstDiracDec SequenceDecompressor *decompress; + std::istream * input_stream; PicOutput *output_image; }; @@ -104,7 +105,7 @@ gst_diracdec_get_type (void) if (!diracdec_type) { static const GTypeInfo diracdec_info = { - sizeof (GstDiracDec), + sizeof (GstDiracDecClass), gst_diracdec_base_init, NULL, (GClassInitFunc) gst_diracdec_class_init, @@ -165,6 +166,8 @@ gst_diracdec_class_init (GstDiracDec * klass) static void gst_diracdec_init (GstDiracDec * diracdec) { + SeqParams params; + GST_DEBUG ("gst_diracdec_init: initializing"); /* create the sink and src pads */ @@ -181,8 +184,11 @@ gst_diracdec_init (GstDiracDec * diracdec) gst_pad_use_explicit_caps (diracdec->srcpad); gst_element_add_pad (GST_ELEMENT (diracdec), diracdec->srcpad); - diracdec->decompress = new SequenceDecompressor; - diracdec->output_image = new PicOutput; + //diracdec->input_stream = new std::istream (); + diracdec->input_stream = NULL; + diracdec->decompress = + new SequenceDecompressor (diracdec->input_stream, FALSE); + diracdec->output_image = new PicOutput ("moo", params, (bool) FALSE); } static GstPadLinkReturn -- cgit v1.2.1