From 8104f31c71d67e2db47496977ee623ae22e89c12 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Mon, 2 Jun 2008 12:42:14 +0000 Subject: gst/interleave/interleave.*: Allow setting channel positions via a property and allow using the channel positions on ... Original commit message from CVS: * gst/interleave/interleave.c: (gst_interleave_pad_get_type), (gst_interleave_finalize), (gst_audio_check_channel_positions), (gst_interleave_set_channel_positions), (gst_interleave_class_init), (gst_interleave_init), (gst_interleave_set_property), (gst_interleave_get_property), (gst_interleave_request_new_pad), (gst_interleave_release_pad), (gst_interleave_sink_setcaps), (gst_interleave_src_query_duration), (gst_interleave_src_query_latency), (gst_interleave_collected): * gst/interleave/interleave.h: Allow setting channel positions via a property and allow using the channel positions on the input as the channel positions of the output. Fix some broken logic and memory leaks. * tests/check/Makefile.am: * tests/check/elements/interleave.c: (src_handoff_float32), (sink_handoff_float32), (GST_START_TEST), (interleave_suite): Add unit tests for checking correct handling of channel positions. --- gst/interleave/interleave.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gst/interleave/interleave.h') diff --git a/gst/interleave/interleave.h b/gst/interleave/interleave.h index 65006954..c98cc43b 100644 --- a/gst/interleave/interleave.h +++ b/gst/interleave/interleave.h @@ -55,6 +55,10 @@ struct _GstInterleave gint rate; gint width; + GValueArray *channel_positions; + GValueArray *input_channel_positions; + gboolean channel_positions_from_input; + GstCaps *sinkcaps; GstClockTime timestamp; -- cgit v1.2.1