From 80928eba03bd6b4b7d50e14bb96524e30a7f7d54 Mon Sep 17 00:00:00 2001 From: Stefan Kost Date: Wed, 20 Jun 2007 08:42:17 +0000 Subject: ext/amrwb/: Add newsegment and discont handling. Some code cleanups. Don't leak the adapter, unref it in a new finali... Original commit message from CVS: * ext/amrwb/gstamrwbdec.c: (gst_amrwbdec_base_init), (gst_amrwbdec_class_init), (gst_amrwbdec_finalize), (gst_amrwbdec_event), (gst_amrwbdec_chain), (gst_amrwbdec_state_change): * ext/amrwb/gstamrwbdec.h: * ext/amrwb/gstamrwbparse.c: (gst_amrwbparse_base_init), (gst_amrwbparse_pull_header), (gst_amrwbparse_loop): Add newsegment and discont handling. Some code cleanups. Don't leak the adapter, unref it in a new finalize method instead. Sync the parser with the amr-nb changes. --- ext/amrwb/gstamrwbdec.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'ext/amrwb/gstamrwbdec.h') diff --git a/ext/amrwb/gstamrwbdec.h b/ext/amrwb/gstamrwbdec.h index 68bd4172..13ff6021 100644 --- a/ext/amrwb/gstamrwbdec.h +++ b/ext/amrwb/gstamrwbdec.h @@ -57,6 +57,9 @@ struct _GstAmrwbDec { /* output settings */ gint channels, rate; gint duration; + + GstSegment segment; + gboolean discont; }; struct _GstAmrwbDecClass { -- cgit v1.2.1