Skip to content

Commit

Permalink
Bump unifex to 0.7.0 (#25)
Browse files Browse the repository at this point in the history
* Bump unifex to 0.7.0
* Update README
  • Loading branch information
daniel-jodlos authored Nov 3, 2021
1 parent d17e797 commit 06979b2
Showing 4 changed files with 12 additions and 10 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -13,7 +13,7 @@ It is a part of [Membrane Multimedia Framework](https://membraneframework.org).
Add the following line to your `deps` in `mix.exs`. Run `mix deps.get`.

```elixir
{:membrane_ffmpeg_swresample_plugin, "~> 0.7.1"}
{:membrane_ffmpeg_swresample_plugin, "~> 0.9"}
```

You also need to have [FFmpeg](https://www.ffmpeg.org/) library installed.
10 changes: 6 additions & 4 deletions c_src/membrane_ffmpeg_swresample_plugin/converter.c
Original file line number Diff line number Diff line change
@@ -68,12 +68,14 @@ UNIFEX_TERM convert(UnifexEnv *env, UnifexPayload *in_payload,
if (conversion_error) {
return convert_result_error(env, conversion_error);
}
UnifexPayload *out_payload =
unifex_payload_alloc(env, in_payload->type, output_size);
memcpy(out_payload->data, output, output_size);
UnifexPayload out_payload;
unifex_payload_alloc(env, in_payload->type, output_size, &out_payload);
memcpy(out_payload.data, output, output_size);
lib_free_output(&output);

return convert_result_ok(env, out_payload);
UNIFEX_TERM res = convert_result_ok(env, &out_payload);
unifex_payload_release(&out_payload);
return res;
}

void handle_destroy_state(UnifexEnv *env, ConverterState *state) {
6 changes: 3 additions & 3 deletions mix.exs
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@ defmodule Membrane.FFmpeg.SWResample.Mixfile do
use Mix.Project

@github_url "https://github.com/membraneframework/membrane_ffmpeg_swresample_plugin"
@version "0.8.0"
@version "0.9.0"

def project do
[
@@ -66,8 +66,8 @@ defmodule Membrane.FFmpeg.SWResample.Mixfile do
{:membrane_core, "~> 0.7.0"},
{:membrane_caps_audio_raw, "~> 0.4.0"},
{:bunch, "~> 1.3.0"},
{:unifex, "~> 0.6.0"},
{:membrane_common_c, "~> 0.8.0"},
{:unifex, "~> 0.7.0"},
{:membrane_common_c, "~> 0.9.0"},
{:bundlex, "~> 0.5.0"},
{:mockery, "~> 2.1", runtime: false}
]
4 changes: 2 additions & 2 deletions mix.lock
Original file line number Diff line number Diff line change
@@ -11,7 +11,7 @@
"makeup_elixir": {:hex, :makeup_elixir, "0.15.1", "b5888c880d17d1cc3e598f05cdb5b5a91b7b17ac4eaf5f297cb697663a1094dd", [:mix], [{:makeup, "~> 1.0", [hex: :makeup, repo: "hexpm", optional: false]}, {:nimble_parsec, "~> 1.1", [hex: :nimble_parsec, repo: "hexpm", optional: false]}], "hexpm", "db68c173234b07ab2a07f645a5acdc117b9f99d69ebf521821d89690ae6c6ec8"},
"makeup_erlang": {:hex, :makeup_erlang, "0.1.1", "3fcb7f09eb9d98dc4d208f49cc955a34218fc41ff6b84df7c75b3e6e533cc65f", [:mix], [{:makeup, "~> 1.0", [hex: :makeup, repo: "hexpm", optional: false]}], "hexpm", "174d0809e98a4ef0b3309256cbf97101c6ec01c4ab0b23e926a9e17df2077cbb"},
"membrane_caps_audio_raw": {:hex, :membrane_caps_audio_raw, "0.4.0", "6a94d2e22c89d8995bfa3b00954ee25f0d441295d64e9a8ed153acb9149df54c", [:mix], [{:bimap, "~> 1.0", [hex: :bimap, repo: "hexpm", optional: false]}, {:bunch, "~> 1.0", [hex: :bunch, repo: "hexpm", optional: false]}, {:membrane_core, "~> 0.7.0", [hex: :membrane_core, repo: "hexpm", optional: false]}], "hexpm", "afba3a49c9c9862a58ab118de13e3d267f567e37266741c679ed446e03fa3a70"},
"membrane_common_c": {:hex, :membrane_common_c, "0.8.0", "03935f19046cc89746b5c23d173f2b0c9962f5140e577b9211609fb936b2b519", [:mix], [{:membrane_core, "~> 0.7.0", [hex: :membrane_core, repo: "hexpm", optional: false]}, {:shmex, "~> 0.4.0", [hex: :shmex, repo: "hexpm", optional: false]}, {:unifex, "~> 0.6.0", [hex: :unifex, repo: "hexpm", optional: false]}], "hexpm", "0f9145b2af272e2313ca1638c7613a50981a4e4604bb46f163f7ae7aa50031f4"},
"membrane_common_c": {:hex, :membrane_common_c, "0.9.0", "696c631acd34e3e7eea66e1da84fc6b37e51465f44b193f2fead3c2bcad59aed", [:mix], [{:membrane_core, "~> 0.7.0", [hex: :membrane_core, repo: "hexpm", optional: false]}, {:shmex, "~> 0.4.0", [hex: :shmex, repo: "hexpm", optional: false]}, {:unifex, "~> 0.7.0", [hex: :unifex, repo: "hexpm", optional: false]}], "hexpm", "5f94b0a9667a988e8abe3b863d902e6cf6ea7e2047820855a3d863ef82b3c190"},
"membrane_core": {:hex, :membrane_core, "0.7.0", "fc773f3b79ad3b5631c3a0754c429b333a4e024989aa4a63e49aa796d2fa1bd8", [:mix], [{:bunch, "~> 1.3", [hex: :bunch, repo: "hexpm", optional: false]}, {:qex, "~> 0.3", [hex: :qex, repo: "hexpm", optional: false]}, {:ratio, "~> 2.0", [hex: :ratio, repo: "hexpm", optional: false]}, {:telemetry, "~> 0.4", [hex: :telemetry, repo: "hexpm", optional: false]}], "hexpm", "4d04d42712d5548cf22993d85a7fdee9f4b6dfe31500ed299ed692fabdbc9824"},
"mockery": {:hex, :mockery, "2.3.1", "a02fd60b10ac9ed37a7a2ecf6786c1f1dd5c75d2b079a60594b089fba32dc087", [:mix], [], "hexpm", "1d0971d88ebf084e962da3f2cfee16f0ea8e04ff73a7710428500d4500b947fa"},
"nimble_parsec": {:hex, :nimble_parsec, "1.1.0", "3a6fca1550363552e54c216debb6a9e95bd8d32348938e13de5eda962c0d7f89", [:mix], [], "hexpm", "08eb32d66b706e913ff748f11694b17981c0b04a33ef470e33e11b3d3ac8f54b"},
@@ -21,5 +21,5 @@
"secure_random": {:hex, :secure_random, "0.5.1", "c5532b37c89d175c328f5196a0c2a5680b15ebce3e654da37129a9fe40ebf51b", [:mix], [], "hexpm", "1b9754f15e3940a143baafd19da12293f100044df69ea12db5d72878312ae6ab"},
"shmex": {:hex, :shmex, "0.4.0", "8a074a984bbd45808d80eddfa0f037d7dfb4d4046e6566cd40adf41e13decf74", [:mix], [{:bunch_native, "~> 0.4.0", [hex: :bunch_native, repo: "hexpm", optional: false]}, {:bundlex, "~> 0.5.0", [hex: :bundlex, repo: "hexpm", optional: false]}], "hexpm", "1018c4eca1db5352ed4dec4813e1ee212b98fc851e1edd302906892538bbfaa8"},
"telemetry": {:hex, :telemetry, "0.4.3", "a06428a514bdbc63293cd9a6263aad00ddeb66f608163bdec7c8995784080818", [:rebar3], [], "hexpm", "eb72b8365ffda5bed68a620d1da88525e326cb82a75ee61354fc24b844768041"},
"unifex": {:hex, :unifex, "0.6.0", "74df301350722227e0e6243a4c729be0c58759bc3661378548b473883be78c38", [:mix], [{:bunch, "~> 1.0", [hex: :bunch, repo: "hexpm", optional: false]}, {:bundlex, "~> 0.5.0", [hex: :bundlex, repo: "hexpm", optional: false]}, {:shmex, "~> 0.4.0", [hex: :shmex, repo: "hexpm", optional: false]}], "hexpm", "b7a2b7da941aa0ae32c4659a317e0dcc02216557bc3c522b510eb4e466ddced0"},
"unifex": {:hex, :unifex, "0.7.0", "43b876f19a6f9e1849762d90ac2242698a8318199e4b6b92d18274873c733bec", [:mix], [{:bunch, "~> 1.0", [hex: :bunch, repo: "hexpm", optional: false]}, {:bundlex, "~> 0.5.0", [hex: :bundlex, repo: "hexpm", optional: false]}, {:shmex, "~> 0.4.0", [hex: :shmex, repo: "hexpm", optional: false]}], "hexpm", "dac9366611d82d647df5c604638caac0c26951d62892e19cacff3bf7d37556f8"},
}

0 comments on commit 06979b2

Please sign in to comment.