Skip to content

Commit

Permalink
Add stream format restriction (#35)
Browse files Browse the repository at this point in the history
* Add stream format restriction

* Update lib/membrane_sdl/player.ex

Co-authored-by: Mateusz Front <[email protected]>

---------

Co-authored-by: Mateusz Front <[email protected]>
  • Loading branch information
FelonEkonom and mat-hek authored Jun 6, 2024
1 parent 8648e06 commit bccf578
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Add the following line to your `deps` in `mix.exs`. Run `mix deps.get`.
```elixir
def deps do
[
{:membrane_sdl_plugin, "~> 0.18.2"}
{:membrane_sdl_plugin, "~> 0.18.3"}
]
end
```
Expand Down
5 changes: 4 additions & 1 deletion lib/membrane_sdl/player.ex
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@ defmodule Membrane.SDL.Player do
# The measured latency needed to show a frame on a screen.
@latency 20 |> Time.milliseconds()

def_input_pad :input, accepted_format: RawVideo, flow_control: :manual, demand_unit: :buffers
def_input_pad :input,
accepted_format: %RawVideo{pixel_format: :I420},
flow_control: :manual,
demand_unit: :buffers

@impl true
def handle_init(_options, _ctx) do
Expand Down
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
defmodule Membrane.SDL.Plugin.MixProject do
use Mix.Project

@version "0.18.2"
@version "0.18.3"
@github_url "https://github.com/membraneframework/membrane_sdl_plugin"

def project do
Expand Down

0 comments on commit bccf578

Please sign in to comment.