Skip to content

Commit f04a3ec

Browse files
authored
Open camera on a dirty scheduler (#25)
* Open camera on dirty scheduler * Apply reviewr suggestion
1 parent 9f0f2db commit f04a3ec

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ It is part of [Membrane Multimedia Framework](https://membraneframework.org).
1313
Add the following line to your `deps` in `mix.exs`. Run `mix deps.get`.
1414

1515
```elixir
16-
{:membrane_camera_capture_plugin, "~> 0.7.4"}
16+
{:membrane_camera_capture_plugin, "~> 0.7.5"}
1717
```
1818

1919
This package depends on the [ffmpeg](https://www.ffmpeg.org) libraries. The precompiled builds will be pulled and linked automatically. However, should there be any problems, consider installing it manually.

c_src/membrane_camera_capture_plugin/camera_capture.spec.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ spec do_open(url :: string, framerate :: string) ::
88
spec read_packet(state) :: {:ok :: label, payload} | {:error :: label, reason :: atom}
99
spec stream_props(state) :: {:ok :: label, width :: int, height :: int, pixel_format :: string}
1010

11-
dirty :cpu, read_packet: 1
11+
dirty :io, read_packet: 1, do_open: 2

mix.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
defmodule Membrane.CameraCapture.Mixfile do
22
use Mix.Project
33

4-
@version "0.7.4"
4+
@version "0.7.5"
55
@github_url "https://github.com/membraneframework/membrane_camera_capture_plugin"
66

77
def project do

0 commit comments

Comments
 (0)