diff options
author | Wim Taymans <wtaymans@redhat.com> | 2016-01-08 17:34:50 +0100 |
---|---|---|
committer | Wim Taymans <wtaymans@redhat.com> | 2016-01-08 17:34:50 +0100 |
commit | 85afad72ec3821c8896fd9d86c558df44ae5dfb8 (patch) | |
tree | 6d9ba497d6ed0cde7389220d5ca284b642cffea0 /gst/audioconvert | |
parent | 7f49b946cc1cced876642d873306f484afe5af50 (diff) |
audio-converter: small API tweaks
Pass flags in _converter_new() so that we can configure ourselves
differently depending on some options.
SOURCE_WRITABLE -> IN_WRITABLE because the array is called 'in'
Diffstat (limited to 'gst/audioconvert')
-rw-r--r-- | gst/audioconvert/gstaudioconvert.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gst/audioconvert/gstaudioconvert.c b/gst/audioconvert/gstaudioconvert.c index b3714aa88..a3a8fad32 100644 --- a/gst/audioconvert/gstaudioconvert.c +++ b/gst/audioconvert/gstaudioconvert.c @@ -660,7 +660,7 @@ gst_audio_convert_set_caps (GstBaseTransform * base, GstCaps * incaps, if (!gst_audio_info_from_caps (&out_info, outcaps)) goto invalid_out; - this->convert = gst_audio_converter_new (&in_info, &out_info, + this->convert = gst_audio_converter_new (0, &in_info, &out_info, gst_structure_new ("GstAudioConverterConfig", GST_AUDIO_CONVERTER_OPT_DITHER_METHOD, GST_TYPE_AUDIO_DITHER_METHOD, this->dither, @@ -734,7 +734,7 @@ gst_audio_convert_transform (GstBaseTransform * base, GstBuffer * inbuf, /* and convert the samples */ flags = 0; if (inbuf_writable) - flags |= GST_AUDIO_CONVERTER_FLAG_SOURCE_WRITABLE; + flags |= GST_AUDIO_CONVERTER_FLAG_IN_WRITABLE; if (!GST_BUFFER_FLAG_IS_SET (inbuf, GST_BUFFER_FLAG_GAP)) { gpointer in[1] = { srcmap.data }; |