Skip to content

Commit

Permalink
sink -> player
Browse files Browse the repository at this point in the history
  • Loading branch information
mat-hek committed Jun 6, 2019
1 parent 651a328 commit dde79a7
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 8 deletions.
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ defmodule My.Pipeline do
},
parser: %H264.Parser{framerate: {30, 1}},
decoder: H264.Decoder,
sdl: SDL.Sink
sdl: SDL.Player
]

links = %{
Expand All @@ -52,7 +52,6 @@ defmodule My.Pipeline do
{{:ok, %Spec{children: children, links: links}}, %{}}
end
end

```

## Copyright and License
Expand Down
4 changes: 2 additions & 2 deletions bundlex.exs
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ defmodule Membrane.Element.SDL.BundlexProject do

defp cnodes(_platform) do
[
sink: [
sources: ["sink.c", "cnodeserver.c"],
player: [
sources: ["player.c", "cnodeserver.c"],
deps: [shmex: :lib_cnode, bunch_native: :bunch],
pkg_configs: ["sdl2"]
]
Expand Down
2 changes: 1 addition & 1 deletion c_src/membrane_element_sdl/cnodeserver.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#define _REENTRANT // For some reason __erl_errno is undefined unless _REENTRANT
// is defined
#endif
#include "sink.h"
#include "player.h"
#include <ei.h>
#include <ei_connect.h>
#include <erl_interface.h>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#include <sys/mman.h>
#include <unistd.h>

#include "sink.h"
#include "player.h"

int create(int width, int height, State *state) {
SDL_Window *window = NULL;
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
defmodule Membrane.Element.SDL.Sink do
defmodule Membrane.Element.SDL.Player do
@moduledoc """
This module provides an [SDL](https://www.libsdl.org/)-based video player sink.
"""
Expand All @@ -19,7 +19,7 @@ defmodule Membrane.Element.SDL.Sink do

@impl true
def handle_stopped_to_prepared(_ctx, state) do
{:ok, cnode} = CNode.start_link(:sink)
{:ok, cnode} = CNode.start_link(:player)
{:ok, %{state | cnode: cnode}}
end

Expand Down

0 comments on commit dde79a7

Please sign in to comment.