Skip to content

Commit

Permalink
fix: waiting other frames. (#58)
Browse files Browse the repository at this point in the history
* fix: waiting other frames.

* bumb version

* fix formatting
  • Loading branch information
mohammedzeglam-pg committed Jun 26, 2023
1 parent ded2ef6 commit 1181a25
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ The package can be installed by adding `membrane_rtmp_plugin` to your list of de
```elixir
def deps do
[
{:membrane_rtmp_plugin, "~> 0.13.1"}
{:membrane_rtmp_plugin, "~> 0.13.2"}
]
end
```
Expand Down
6 changes: 5 additions & 1 deletion lib/membrane_rtmp_plugin/rtmp/sink/sink.ex
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,11 @@ defmodule Membrane.RTMP.Sink do
end
end

defp write_frame_interleaved(%{frame_buffer: %{audio: audio, video: video}} = state)
defp write_frame_interleaved(
%{
frame_buffer: %{Pad.ref(:audio, 0) => audio, Pad.ref(:video, 0) => video}
} = state
)
when audio == nil or video == nil do
# We still have to wait for the other frame.
{[], state}
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.RTMP.Mixfile do
use Mix.Project

@version "0.13.1"
@version "0.13.2"
@github_url "https://github.com/membraneframework/membrane_rtmp_plugin"

def project do
Expand Down

0 comments on commit 1181a25

Please sign in to comment.