Skip to content

Commit

Permalink
Merge pull request #6 from ConnorRigby/doc-update
Browse files Browse the repository at this point in the history
Update Readme.md example usage
  • Loading branch information
mat-hek authored Jan 23, 2020
2 parents 201a0ad + 581ee20 commit ad7fdf5
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ The pipeline below displays a sample h264 video from the net (with use of [Hackn
```elixir
defmodule My.Pipeline do
alias Membrane.Element.{FFmpeg.H264, Hackney, SDL}
alias Membrane.Pipeline.Spec
use Membrane.Pipeline

@impl true
Expand All @@ -43,13 +42,14 @@ defmodule My.Pipeline do
sdl: SDL.Player
]

links = %{
{:hackney, :output} => {:parser, :input},
{:parser, :output} => {:decoder, :input},
{:decoder, :output} => {:sdl, :input}
}
links = [
link(:hackney)
|> to(:parser)
|> to(:decoder)
|> to(:sdl)
]

{{:ok, spec: %Spec{children: children, links: links}}, %{}}
{{:ok, spec: %ParentSpec{children: children, links: links}}, %{}}
end
end
```
Expand Down

0 comments on commit ad7fdf5

Please sign in to comment.