Skip to content

Commit

Permalink
Migrated to Core 0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
Hajto committed Apr 11, 2019
1 parent de280b3 commit 495fa67
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 23 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ The docs can be found at [HexDocs](https://hexdocs.pm/membrane_element_rtp_h264)

## Copyright and License

Copyright 2018, [Software Mansion](https://swmansion.com/?utm_source=git&utm_medium=readme&utm_campaign=membrane)
Copyright 2019, [Software Mansion](https://swmansion.com/?utm_source=git&utm_medium=readme&utm_campaign=membrane)

[![Software Mansion](https://membraneframework.github.io/static/logo/swm_logo_readme.png)](https://swmansion.com/?utm_source=git&utm_medium=readme&utm_campaign=membrane)

Expand Down
14 changes: 6 additions & 8 deletions lib/rtp_h264/depayloader.ex
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,12 @@ defmodule Membrane.Element.RTP.H264.Depayloader do
@frame_prefix <<1::32>>
@type sequence_number :: 0..65_535

def_output_pads output: [
caps: {H264, stream_format: :byte_stream}
]

def_input_pads input: [
caps: {RTP, payload_type: :dynamic},
demand_unit: :buffers
]
def_output_pad :output,
caps: {H264, stream_format: :byte_stream}

def_input_pad :input,
caps: {RTP, payload_type: :dynamic},
demand_unit: :buffers

defmodule State do
@moduledoc false
Expand Down
4 changes: 2 additions & 2 deletions mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,13 @@ defmodule Membrane.Element.RTP.H264.MixProject do

defp deps do
[
{:membrane_core, "~> 0.2.2"},
{:membrane_core, "~> 0.3"},
{:ex_doc, "~> 0.19", only: :dev, runtime: false},
{:dialyxir, "~> 1.0.0-rc.4", only: [:dev], runtime: false},
{:bunch, "~> 1.0"},
{:membrane_caps_rtp, github: "membraneframework/membrane-caps-rtp"},
{:membrane_caps_video_h264, "~> 0.1"},
{:membrane_loggers, "~> 0.2.3"},
{:membrane_loggers, "~> 0.2"},
{:credo, "~> 1.0.0", only: [:dev, :test], runtime: false}
]
end
Expand Down
25 changes: 13 additions & 12 deletions mix.lock
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
%{
"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"},
"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.3", "68038073a40854456b21f8e3989400cd097662482990eb1ec77e8ee9e65b17a5", [: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"},
"bunt": {:hex, :bunt, "0.2.0", "951c6e801e8b1d2cbe58ebbd3e616a869061ddadcc4863d0a2182541acae9a38", [:mix], [], "hexpm"},
"certifi": {:hex, :certifi, "2.5.1", "867ce347f7c7d78563450a18a6a28a8090331e77fa02380b4a21962a65d36ee5", [:rebar3], [{:parse_trans, "~>3.3", [hex: :parse_trans, repo: "hexpm", optional: false]}], "hexpm"},
"coverex": {:hex, :coverex, "1.4.15", "60fadf825a6c0439b79d1f98cdb54b6733cdd5cb1b35d15d56026c44ed15a5a8", [:mix], [{:hackney, "~> 1.5", [hex: :hackney, repo: "hexpm", optional: false]}, {:poison, "~> 1.5 or ~> 2.0 or ~> 3.0", [hex: :poison, repo: "hexpm", optional: false]}], "hexpm"},
"credo": {:hex, :credo, "1.0.3", "5278e8953f379b41ebe27c75c96d2e154ebc3f75dfe057c8b68c39133c25bb9f", [:mix], [{:bunt, "~> 0.2.0", [hex: :bunt, repo: "hexpm", optional: false]}, {:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: false]}], "hexpm"},
"dialyxir": {:hex, :dialyxir, "1.0.0-rc.4", "71b42f5ee1b7628f3e3a6565f4617dfb02d127a0499ab3e72750455e986df001", [:mix], [{:erlex, "~> 0.1", [hex: :erlex, repo: "hexpm", optional: false]}], "hexpm"},
"earmark": {:hex, :earmark, "1.3.1", "73812f447f7a42358d3ba79283cfa3075a7580a3a2ed457616d6517ac3738cb9", [:mix], [], "hexpm"},
"credo": {:hex, :credo, "1.0.4", "d2214d4cc88c07f54004ffd5a2a27408208841be5eca9f5a72ce9e8e835f7ede", [:mix], [{:bunt, "~> 0.2.0", [hex: :bunt, repo: "hexpm", optional: false]}, {:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: false]}], "hexpm"},
"dialyxir": {:hex, :dialyxir, "1.0.0-rc.6", "78e97d9c0ff1b5521dd68041193891aebebce52fc3b93463c0a6806874557d7d", [:mix], [{:erlex, "~> 0.2.1", [hex: :erlex, repo: "hexpm", optional: false]}], "hexpm"},
"earmark": {:hex, :earmark, "1.3.2", "b840562ea3d67795ffbb5bd88940b1bed0ed9fa32834915125ea7d02e35888a5", [:mix], [], "hexpm"},
"erlex": {:hex, :erlex, "0.2.1", "cee02918660807cbba9a7229cae9b42d1c6143b768c781fa6cee1eaf03ad860b", [: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"},
"ex_doc": {:hex, :ex_doc, "0.20.1", "88eaa16e67c505664fd6a66f42ddb962d424ad68df586b214b71443c69887123", [:mix], [{:earmark, "~> 1.3", [hex: :earmark, repo: "hexpm", optional: false]}, {:makeup_elixir, "~> 0.10", [hex: :makeup_elixir, repo: "hexpm", optional: false]}], "hexpm"},
"gradualixir": {:git, "https://github.com/overminddl1/gradualixir.git", "ae461e809059a05482deaa753fb9fd09fa0ad8b6", [ref: "master"]},
"gradualizer": {:git, "https://github.com/josefs/Gradualizer.git", "c5c4e1d334e1d6f99bfb9f62640e7c5ad3e65b19", [ref: "master"]},
"hackney": {:hex, :hackney, "1.15.1", "9f8f471c844b8ce395f7b6d8398139e26ddca9ebc171a8b91342ee15a19963f4", [:rebar3], [{:certifi, "2.5.1", [hex: :certifi, repo: "hexpm", optional: false]}, {:idna, "6.0.0", [hex: :idna, repo: "hexpm", optional: false]}, {:metrics, "1.0.1", [hex: :metrics, repo: "hexpm", optional: false]}, {:mimerl, "~>1.1", [hex: :mimerl, repo: "hexpm", optional: false]}, {:ssl_verify_fun, "1.1.4", [hex: :ssl_verify_fun, repo: "hexpm", optional: false]}], "hexpm"},
Expand All @@ -19,17 +19,18 @@
"makeup_elixir": {:hex, :makeup_elixir, "0.13.0", "be7a477997dcac2e48a9d695ec730b2d22418292675c75aa2d34ba0909dcdeda", [:mix], [{:makeup, "~> 0.8", [hex: :makeup, repo: "hexpm", optional: false]}], "hexpm"},
"membrane_caps_rtp": {:git, "https://github.com/membraneframework/membrane-caps-rtp.git", "22865895f268319e6b003b3ad77aa5e4d3cc6008", []},
"membrane_caps_video_h264": {:hex, :membrane_caps_video_h264, "0.1.0", "d10eb30fdc00175aaeb4bb0d5cb4c031cc319e29330b5585bef2044352161584", [:mix], [], "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_loggers": {:hex, :membrane_loggers, "0.2.3", "0e3c2e0180891d179d8f4ab1c99782ccdd9dd030931b8bdb4095e5e558ec4461", [:mix], [{:bunch_native, "~> 0.1", [hex: :bunch_native, repo: "hexpm", optional: false]}, {:bundlex, "~> 0.1.5", [hex: :bundlex, repo: "hexpm", optional: false]}, {:membrane_common_c, "~> 0.2.0", [hex: :membrane_common_c, repo: "hexpm", optional: false]}, {:membrane_core, "~> 0.2.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"},
"membrane_loggers": {:hex, :membrane_loggers, "0.2.4", "cdba8ec96a6cc33647ee985609fc720c7d395f4d73150ff1000ce44c9c8f168a", [:mix], [{:bunch_native, "~> 0.1.0", [hex: :bunch_native, repo: "hexpm", optional: false]}, {:bundlex, "~> 0.2.0", [hex: :bundlex, repo: "hexpm", optional: false]}, {:membrane_common_c, "~> 0.2.2", [hex: :membrane_common_c, repo: "hexpm", optional: false]}, {:membrane_core, "~> 0.3.0", [hex: :membrane_core, repo: "hexpm", optional: false]}], "hexpm"},
"metrics": {:hex, :metrics, "1.0.1", "25f094dea2cda98213cecc3aeff09e940299d950904393b2a29d191c346a8486", [:rebar3], [], "hexpm"},
"mimerl": {:hex, :mimerl, "1.2.0", "67e2d3f571088d5cfd3e550c383094b47159f3eee8ffa08e64106cdf5e981be3", [:rebar3], [], "hexpm"},
"nimble_parsec": {:hex, :nimble_parsec, "0.5.0", "90e2eca3d0266e5c53f8fbe0079694740b9c91b6747f2b7e3c5d21966bba8300", [:mix], [], "hexpm"},
"parse_trans": {:hex, :parse_trans, "3.3.0", "09765507a3c7590a784615cfd421d101aec25098d50b89d7aa1d66646bc571c1", [:rebar3], [], "hexpm"},
"poison": {:hex, :poison, "3.1.0", "d9eb636610e096f86f25d9a46f35a9facac35609a7591b3be3326e99a0484665", [: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"},
"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"},
"ssl_verify_fun": {:hex, :ssl_verify_fun, "1.1.4", "f0eafff810d2041e93f915ef59899c923f4568f4585904d010387ed74988e77b", [:make, :mix, :rebar3], [], "hexpm"},
"unicode_util_compat": {:hex, :unicode_util_compat, "0.4.1", "d869e4c68901dd9531385bb0c8c40444ebf624e60b6962d95952775cac5e90cd", [:rebar3], [], "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"},
"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"},
}

0 comments on commit 495fa67

Please sign in to comment.