File tree 4 files changed +17
-5
lines changed
4 files changed +17
-5
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ The package can be installed by adding `membrane_rtp_plugin` to your list of dep
15
15
``` elixir
16
16
def deps do
17
17
[
18
- {:membrane_rtp_plugin , " ~> 0.24.0 " },
18
+ {:membrane_rtp_plugin , " ~> 0.24.1 " },
19
19
{:ex_libsrtp , " >= 0.0.0" } # required only if SRTP/SRTCP support is needed
20
20
]
21
21
end
Original file line number Diff line number Diff line change @@ -259,6 +259,18 @@ defmodule Membrane.RTP.OutboundTrackingSerializer do
259
259
{ [ buffer: { :output , buffer } ] , % { state | any_buffer_sent?: true } }
260
260
end
261
261
262
+ @ impl true
263
+ def handle_end_of_stream ( _pad , ctx , state ) do
264
+ if ctx . pads
265
+ |> Map . values ( )
266
+ |> Enum . filter ( & ( & 1 . direction == :input ) )
267
+ |> Enum . all? ( & & 1 . end_of_stream? ) do
268
+ { [ forward: :end_of_stream ] , state }
269
+ else
270
+ { [ ] , state }
271
+ end
272
+ end
273
+
262
274
@ impl true
263
275
def handle_parent_notification ( :send_stats , ctx , state ) do
264
276
% { rtcp_output_pad: rtcp_output } = state
Original file line number Diff line number Diff line change @@ -594,7 +594,7 @@ defmodule Membrane.RTP.SessionBin do
594
594
|> Enum . map ( & { & 1 , ref } )
595
595
|> Enum . filter ( & Map . has_key? ( ctx . children , & 1 ) )
596
596
597
- { [ remove_child : children ] , state }
597
+ { [ remove_children : children ] , state }
598
598
end
599
599
600
600
@ impl true
@@ -608,7 +608,7 @@ defmodule Membrane.RTP.SessionBin do
608
608
_other -> [ ]
609
609
end )
610
610
611
- { [ remove_child : to_remove ] , state }
611
+ { [ remove_children : to_remove ] , state }
612
612
end
613
613
614
614
@ impl true
@@ -627,7 +627,7 @@ defmodule Membrane.RTP.SessionBin do
627
627
child && not child . terminating?
628
628
end )
629
629
630
- { [ remove_child : to_remove ] , state }
630
+ { [ remove_children : to_remove ] , state }
631
631
end
632
632
633
633
@ impl true
Original file line number Diff line number Diff line change 1
1
defmodule Membrane.RTP.Plugin.MixProject do
2
2
use Mix.Project
3
3
4
- @ version "0.24.0 "
4
+ @ version "0.24.1 "
5
5
@ github_url "https://github.com/membraneframework/membrane_rtp_plugin"
6
6
7
7
def project do
You can’t perform that action at this time.
0 commit comments