summaryrefslogtreecommitdiffstats
path: root/ext/wavpack/gstwavpackenc.c
diff options
context:
space:
mode:
authorSebastian Dröge <slomo@circular-chaos.org>2007-03-22 15:52:51 +0000
committerSebastian Dröge <slomo@circular-chaos.org>2007-03-22 15:52:51 +0000
commit8d8d278b9aec1df81fbc7c7cb3fe7aad999cb0d4 (patch)
tree1ba0c1f89db8c2aeac5da14b4fae22fe05494144 /ext/wavpack/gstwavpackenc.c
parentdd4e39e60f8bd0061371b4727808969e4d69e4fc (diff)
downloadgst-plugins-bad-8d8d278b9aec1df81fbc7c7cb3fe7aad999cb0d4.tar.gz
gst-plugins-bad-8d8d278b9aec1df81fbc7c7cb3fe7aad999cb0d4.tar.bz2
gst-plugins-bad-8d8d278b9aec1df81fbc7c7cb3fe7aad999cb0d4.zip
ext/wavpack/gstwavpackenc.c: Send the new segment event in time format instead of bytes. This allows "wavpackenc ! wa...
Original commit message from CVS: * ext/wavpack/gstwavpackenc.c: (gst_wavpack_enc_push_block): Send the new segment event in time format instead of bytes. This allows "wavpackenc ! wavpackdec ! someaudiosink" pipelines. * ext/wavpack/gstwavpackparse.c: (gst_wavpack_parse_plugin_init): Accept framed and non-framed input, wavpackparse doesn't care. To prevent "wavpackparse ! wavpackparse ! ..." pipelines lower the rank of wavpackparse by one. This allows "wavpackenc ! wavpackparse ! ..." pipelines.
Diffstat (limited to 'ext/wavpack/gstwavpackenc.c')
-rw-r--r--ext/wavpack/gstwavpackenc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/wavpack/gstwavpackenc.c b/ext/wavpack/gstwavpackenc.c
index fbeb2c7f..57610136 100644
--- a/ext/wavpack/gstwavpackenc.c
+++ b/ext/wavpack/gstwavpackenc.c
@@ -619,7 +619,7 @@ gst_wavpack_enc_push_block (void *id, void *data, int32_t count)
if (wph.block_index == 0) {
gst_pad_push_event (pad,
gst_event_new_new_segment (FALSE,
- 1.0, GST_FORMAT_BYTES, 0, GST_BUFFER_OFFSET_NONE, 0));
+ 1.0, GST_FORMAT_TIME, 0, GST_BUFFER_OFFSET_NONE, 0));
/* save header for later reference, so we can re-send it later on
* EOS with fixed up values for total sample count etc. */