mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-11 16:55:23 +00:00
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.
This commit is contained in:
parent
dd4e39e60f
commit
8d8d278b9a
3 changed files with 15 additions and 5 deletions
12
ChangeLog
12
ChangeLog
|
@ -1,3 +1,15 @@
|
||||||
|
2007-03-22 Sebastian Dröge <slomo@circular-chaos.org>
|
||||||
|
|
||||||
|
* 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.
|
||||||
|
|
||||||
2007-03-22 Thomas Vander Stichele <thomas at apestaart dot org>
|
2007-03-22 Thomas Vander Stichele <thomas at apestaart dot org>
|
||||||
|
|
||||||
* gst-libs/gst/app/Makefile.am:
|
* gst-libs/gst/app/Makefile.am:
|
||||||
|
|
|
@ -619,7 +619,7 @@ gst_wavpack_enc_push_block (void *id, void *data, int32_t count)
|
||||||
if (wph.block_index == 0) {
|
if (wph.block_index == 0) {
|
||||||
gst_pad_push_event (pad,
|
gst_pad_push_event (pad,
|
||||||
gst_event_new_new_segment (FALSE,
|
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
|
/* save header for later reference, so we can re-send it later on
|
||||||
* EOS with fixed up values for total sample count etc. */
|
* EOS with fixed up values for total sample count etc. */
|
||||||
|
|
|
@ -56,9 +56,7 @@ GST_DEBUG_CATEGORY_STATIC (gst_wavpack_parse_debug);
|
||||||
static GstStaticPadTemplate sink_factory = GST_STATIC_PAD_TEMPLATE ("sink",
|
static GstStaticPadTemplate sink_factory = GST_STATIC_PAD_TEMPLATE ("sink",
|
||||||
GST_PAD_SINK,
|
GST_PAD_SINK,
|
||||||
GST_PAD_ALWAYS,
|
GST_PAD_ALWAYS,
|
||||||
GST_STATIC_CAPS ("audio/x-wavpack, "
|
GST_STATIC_CAPS ("audio/x-wavpack; " "audio/x-wavpack-correction")
|
||||||
"framed = (boolean) false; "
|
|
||||||
"audio/x-wavpack-correction, " "framed = (boolean) false")
|
|
||||||
);
|
);
|
||||||
|
|
||||||
static GstStaticPadTemplate src_factory = GST_STATIC_PAD_TEMPLATE ("src",
|
static GstStaticPadTemplate src_factory = GST_STATIC_PAD_TEMPLATE ("src",
|
||||||
|
@ -1173,7 +1171,7 @@ gboolean
|
||||||
gst_wavpack_parse_plugin_init (GstPlugin * plugin)
|
gst_wavpack_parse_plugin_init (GstPlugin * plugin)
|
||||||
{
|
{
|
||||||
if (!gst_element_register (plugin, "wavpackparse",
|
if (!gst_element_register (plugin, "wavpackparse",
|
||||||
GST_RANK_PRIMARY, GST_TYPE_WAVPACK_PARSE)) {
|
GST_RANK_PRIMARY - 1, GST_TYPE_WAVPACK_PARSE)) {
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue