diff --git a/lib/membrane_element_ffmpeg_swresample/converter.ex b/lib/membrane_element_ffmpeg_swresample/converter.ex index 3faa5d9..a95021a 100644 --- a/lib/membrane_element_ffmpeg_swresample/converter.ex +++ b/lib/membrane_element_ffmpeg_swresample/converter.ex @@ -14,12 +14,11 @@ defmodule Membrane.Element.FFmpeg.SWResample.Converter do format: Matcher.one_of([:u8, :s16le, :s32le, :f32le, :f64le]), channels: Matcher.one_of([1, 2])} - def_output_pads output: [caps: @supported_caps] + def_output_pad :output, caps: @supported_caps - def_input_pads input: [ - demand_unit: :bytes, - caps: [@supported_caps, {Caps, format: :s24le, channels: one_of([1, 2])}] - ] + def_input_pad :input, + demand_unit: :bytes, + caps: [@supported_caps, {Caps, format: :s24le, channels: one_of([1, 2])}] def_options input_caps: [ type: :caps, diff --git a/mix.exs b/mix.exs index 5389c36..d432d72 100644 --- a/mix.exs +++ b/mix.exs @@ -2,7 +2,7 @@ defmodule Membrane.Element.FFmpeg.SWResample.Mixfile do use Mix.Project @github_url "https://github.com/membraneframework/membrane-element-ffmpeg-swresample" - @version "0.2.2" + @version "0.2.3" def project do [ @@ -62,12 +62,12 @@ defmodule Membrane.Element.FFmpeg.SWResample.Mixfile do defp deps do [ {:ex_doc, "~> 0.19", only: :dev, runtime: false}, - {:membrane_core, "~> 0.2"}, - {:membrane_caps_audio_raw, "~> 0.1"}, + {:membrane_core, "~> 0.3.0"}, + {:membrane_caps_audio_raw, "~> 0.1.0"}, {:bunch, "~> 1.0"}, - {:unifex, "~> 0.1"}, - {:membrane_common_c, "~> 0.2"}, - {:bundlex, "~> 0.1"}, + {:unifex, "~> 0.2.0"}, + {:membrane_common_c, "~> 0.2.0"}, + {:bundlex, "~> 0.2.1"}, {:mockery, "~> 2.1", runtime: false} ] end diff --git a/mix.lock b/mix.lock index cff7dfe..a5a9a87 100644 --- a/mix.lock +++ b/mix.lock @@ -1,18 +1,19 @@ %{ "bimap": {:hex, :bimap, "1.0.0", "80b707adb832cc7670309c85757caf3493b29a3e484cc6eafd65fceaeb107c05", [:mix], [], "hexpm"}, - "bunch": {:hex, :bunch, "1.0.0", "ab6755cf68fb0ad104503a5ee34a2e634e5d38afb98547cb172b22eed3564bfb", [:mix], [], "hexpm"}, - "bunch_native": {:hex, :bunch_native, "0.1.1", "9895b2cf5e5c6847af5de80c8d485ea9c69021a21e74c7237ab64e7a225c06c2", [:mix], [{:bundlex, "~> 0.1", [hex: :bundlex, repo: "hexpm", optional: false]}], "hexpm"}, - "bundlex": {:hex, :bundlex, "0.1.8", "88c21e181179c427f728be2a067688d36fa1906b90a304d7174caebb78d7f1dc", [:mix], [{:bunch, "~> 1.0", [hex: :bunch, repo: "hexpm", optional: false]}], "hexpm"}, - "earmark": {:hex, :earmark, "1.3.1", "73812f447f7a42358d3ba79283cfa3075a7580a3a2ed457616d6517ac3738cb9", [:mix], [], "hexpm"}, + "bunch": {:hex, :bunch, "1.1.0", "bf9ca22c788ad4f486afb4d6d5e1211ab09cbee473c5cf370e6e550b1df4bc4b", [:mix], [], "hexpm"}, + "bunch_native": {:hex, :bunch_native, "0.1.2", "2bfb50129b343f6046848849865b65163fa719703ba72adb7041936cfe516976", [:mix], [{:bundlex, "~> 0.2.0", [hex: :bundlex, repo: "hexpm", optional: false]}], "hexpm"}, + "bundlex": {:hex, :bundlex, "0.2.1", "f14480a02a2746abba4e71fa11ed4549425b8f0b1783a97166ccb991b9cf6f27", [:mix], [{:bunch, "~> 1.0", [hex: :bunch, repo: "hexpm", optional: false]}, {:qex, "~> 0.5", [hex: :qex, repo: "hexpm", optional: false]}, {:secure_random, "~> 0.5", [hex: :secure_random, repo: "hexpm", optional: false]}], "hexpm"}, + "earmark": {:hex, :earmark, "1.3.2", "b840562ea3d67795ffbb5bd88940b1bed0ed9fa32834915125ea7d02e35888a5", [:mix], [], "hexpm"}, "ex_doc": {:hex, :ex_doc, "0.19.3", "3c7b0f02851f5fc13b040e8e925051452e41248f685e40250d7e40b07b9f8c10", [:mix], [{:earmark, "~> 1.2", [hex: :earmark, repo: "hexpm", optional: false]}, {:makeup_elixir, "~> 0.10", [hex: :makeup_elixir, repo: "hexpm", optional: false]}], "hexpm"}, "makeup": {:hex, :makeup, "0.8.0", "9cf32aea71c7fe0a4b2e9246c2c4978f9070257e5c9ce6d4a28ec450a839b55f", [:mix], [{:nimble_parsec, "~> 0.5.0", [hex: :nimble_parsec, repo: "hexpm", optional: false]}], "hexpm"}, "makeup_elixir": {:hex, :makeup_elixir, "0.13.0", "be7a477997dcac2e48a9d695ec730b2d22418292675c75aa2d34ba0909dcdeda", [:mix], [{:makeup, "~> 0.8", [hex: :makeup, repo: "hexpm", optional: false]}], "hexpm"}, - "membrane_caps_audio_raw": {:hex, :membrane_caps_audio_raw, "0.1.6", "e2d799a57ab976efdddebcb0d5a3738413f0b3cb6eca1c4a5c8f7178a879f757", [:mix], [{:bimap, "~> 1.0", [hex: :bimap, repo: "hexpm", optional: false]}, {:bunch, "~> 1.0", [hex: :bunch, repo: "hexpm", optional: false]}, {:membrane_core, "~> 0.2", [hex: :membrane_core, repo: "hexpm", optional: false]}], "hexpm"}, - "membrane_common_c": {:hex, :membrane_common_c, "0.2.1", "a436baefab1a1af68366bf8509a2f91dd1c14e629ca97dd09d394bec115e6853", [:mix], [{:bundlex, "~> 0.1.3", [hex: :bundlex, repo: "hexpm", optional: false]}, {:membrane_core, "~> 0.2.0", [hex: :membrane_core, repo: "hexpm", optional: false]}, {:shmex, "~> 0.1.3", [hex: :shmex, repo: "hexpm", optional: false]}, {:unifex, "~> 0.2.0", [hex: :unifex, repo: "hexpm", optional: false]}], "hexpm"}, - "membrane_core": {:hex, :membrane_core, "0.2.2", "d9821f6a47342816e50e371be110a44c5c8b849c57c3207f4e36688f77f17f6b", [:mix], [{:bunch, "~> 1.0", [hex: :bunch, repo: "hexpm", optional: false]}, {:qex, "~> 0.3", [hex: :qex, repo: "hexpm", optional: false]}], "hexpm"}, + "membrane_caps_audio_raw": {:hex, :membrane_caps_audio_raw, "0.1.7", "419467f210b556b1790701383731c839393a8aec3ab3a4cbc9b971ef5bd521f4", [:mix], [{:bimap, "~> 1.0", [hex: :bimap, repo: "hexpm", optional: false]}, {:bunch, "~> 1.0", [hex: :bunch, repo: "hexpm", optional: false]}, {:membrane_core, "~> 0.3.0", [hex: :membrane_core, repo: "hexpm", optional: false]}], "hexpm"}, + "membrane_common_c": {:hex, :membrane_common_c, "0.2.2", "14e2ae70d28e5c4b45f98cd80ff0978af8e690db365881a5624f69ba486a55d6", [:mix], [{:bundlex, "~> 0.2.0", [hex: :bundlex, repo: "hexpm", optional: false]}, {:membrane_core, "~> 0.3.0", [hex: :membrane_core, repo: "hexpm", optional: false]}, {:shmex, "~> 0.1.3", [hex: :shmex, repo: "hexpm", optional: false]}, {:unifex, "~> 0.2.0", [hex: :unifex, repo: "hexpm", optional: false]}], "hexpm"}, + "membrane_core": {:hex, :membrane_core, "0.3.0", "21a490e296dcb0c300735cf9fe2296b60c189a79eedf01ec2f3b6b77211269d9", [:mix], [{:bunch, "~> 1.1", [hex: :bunch, repo: "hexpm", optional: false]}, {:qex, "~> 0.3", [hex: :qex, repo: "hexpm", optional: false]}], "hexpm"}, "mockery": {:hex, :mockery, "2.3.0", "f1af3976916e7402427116f491e3038a251857de8f0836952c2fa24ad6de4317", [:mix], [], "hexpm"}, "nimble_parsec": {:hex, :nimble_parsec, "0.5.0", "90e2eca3d0266e5c53f8fbe0079694740b9c91b6747f2b7e3c5d21966bba8300", [:mix], [], "hexpm"}, "qex": {:hex, :qex, "0.5.0", "5a3a9becf67d4006377c4c247ffdaaa8ae5b3634a0caadb788dc24d6125068f4", [:mix], [], "hexpm"}, - "shmex": {:hex, :shmex, "0.1.5", "705cf10a7bd2bb496826cbb21ca7e79e143f0f3e15942cdc17b68c8552ad3ec3", [:mix], [{:bunch_native, "~> 0.1", [hex: :bunch_native, repo: "hexpm", optional: false]}, {:bundlex, "~> 0.1.7", [hex: :bundlex, repo: "hexpm", optional: false]}], "hexpm"}, - "unifex": {:hex, :unifex, "0.2.3", "9bb4f35bf01e81cc58289d6e5099c50f16dddf7bab8d53ac79c19de8bb646ed8", [:mix], [{:bunch, "~> 1.0", [hex: :bunch, repo: "hexpm", optional: false]}, {:bundlex, "~> 0.1.5", [hex: :bundlex, repo: "hexpm", optional: false]}, {:shmex, "~> 0.1.3", [hex: :shmex, repo: "hexpm", optional: false]}], "hexpm"}, + "secure_random": {:hex, :secure_random, "0.5.1", "c5532b37c89d175c328f5196a0c2a5680b15ebce3e654da37129a9fe40ebf51b", [:mix], [], "hexpm"}, + "shmex": {:hex, :shmex, "0.1.6", "ea19781eccab16f917753929970136f24b58600370d163e58020f88cc4a9de19", [:mix], [{:bunch_native, "~> 0.1.2", [hex: :bunch_native, repo: "hexpm", optional: false]}, {:bundlex, "~> 0.2.0", [hex: :bundlex, repo: "hexpm", optional: false]}], "hexpm"}, + "unifex": {:hex, :unifex, "0.2.4", "a0a6707e4dbaaeb979ca5d0dfc1a9709c10816e5bb5194d85d576573cd6e437d", [:mix], [{:bunch, "~> 1.0", [hex: :bunch, repo: "hexpm", optional: false]}, {:bundlex, "~> 0.2.0", [hex: :bundlex, repo: "hexpm", optional: false]}, {:shmex, "~> 0.1.3", [hex: :shmex, repo: "hexpm", optional: false]}], "hexpm"}, }