From 16b28a8eea303ed4cf7f158d2f6d4de45a54f666 Mon Sep 17 00:00:00 2001 From: Stefan Kost Date: Fri, 28 Apr 2006 23:09:17 +0000 Subject: gst/wavparse/gstwavparse.*: Add push (streaming) mode to wavparse (fixes #337625) Original commit message from CVS: * gst/wavparse/gstwavparse.c: (gst_wavparse_base_init), (gst_wavparse_class_init), (gst_wavparse_dispose), (gst_wavparse_reset), (gst_wavparse_init), (gst_wavparse_create_sourcepad), (gst_wavparse_parse_adtl), (gst_wavparse_parse_cues), (gst_wavparse_parse_file_header), (gst_wavparse_stream_init), (gst_wavparse_perform_seek), (gst_wavparse_peek_chunk_info), (gst_wavparse_peek_chunk), (gst_wavparse_stream_headers), (gst_wavparse_parse_stream_init), (gst_wavparse_send_event), (gst_wavparse_add_src_pad), (gst_wavparse_stream_data), (gst_wavparse_loop), (gst_wavparse_chain), (gst_wavparse_srcpad_event), (gst_wavparse_sink_activate), (gst_wavparse_sink_activate_pull), (gst_wavparse_change_state), (plugin_init): * gst/wavparse/gstwavparse.h: Add push (streaming) mode to wavparse (fixes #337625) --- gst/wavparse/gstwavparse.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'gst/wavparse/gstwavparse.h') diff --git a/gst/wavparse/gstwavparse.h b/gst/wavparse/gstwavparse.h index 2d140619..a0b27176 100644 --- a/gst/wavparse/gstwavparse.h +++ b/gst/wavparse/gstwavparse.h @@ -1,5 +1,6 @@ /* GStreamer * Copyright (C) <1999> Erik Walthinsen + * Copyright (C) <2006> Nokia Corporation, Stefan Kost . * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Library General Public @@ -25,6 +26,7 @@ #include #include "gst/riff/riff-ids.h" #include "gst/riff/riff-read.h" +#include G_BEGIN_DECLS @@ -93,9 +95,17 @@ struct _GstWavParse { /* pending seek */ GstEvent *seek_event; + /* For streaming */ + GstAdapter *adapter; + gboolean got_fmt; + gboolean streaming; + /* configured segment, start/stop expressed in time */ GstSegment segment; gboolean segment_running; + + /* for late pad configuration */ + gboolean first; }; struct _GstWavParseClass { -- cgit