Skip to content

Commit dd87597

Browse files
authored
Small corrections for Bin and Dynamic Pads code examples (#94)
* small changes to the code samples * Correction based on review comments
1 parent c0910b7 commit dd87597

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

basic_pipeline_extension/02_Bin.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ defmodule Basic.Bin do
3434
spec = [
3535
child(:input, %Basic.Elements.Source{location: options.input_filename})
3636
|> child(:ordering_buffer, Basic.Elements.OrderingBuffer)
37-
|> to(:depayloader, %Basic.Elements.Depayloader{packets_per_frame: 4})
37+
|> child(:depayloader, %Basic.Elements.Depayloader{packets_per_frame: 4})
3838
|> bin_output(:output)
3939
]
4040

basic_pipeline_extension/03_DynamicPads.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ The very first thing we need to do is to use the `def_input_pads` appropriately.
4242
...
4343
def_input_pad :input,
4444
demand_unit: :buffers,
45-
flow_control: :pull,
45+
flow_control: :manual,
4646
availability: :on_request,
4747
accepted_format: %Basic.Formats.Frame{encoding: :utf8}
4848
...

0 commit comments

Comments
 (0)