Add new internal APIs to media_streamer_internal.h 42/249242/26
authorHyunil <hyunil46.park@samsung.com>
Wed, 9 Dec 2020 07:34:29 +0000 (16:34 +0900)
committerHyunil <hyunil46.park@samsung.com>
Mon, 21 Dec 2020 05:58:23 +0000 (14:58 +0900)
commit2c6a555bfd4216de6348adc084251488aa2d6939
tree86c571eeb2ce54c520cca0ae6660e019471d1bc8
parent3413f6668bc46af9451fa21ff273ba3b86afb618
Add new internal APIs to media_streamer_internal.h

- Add media_streamer_node_pad_probe_cb
  Called when data flows in the pad of media streamer node.
  This callback is used in pad of node by media_streamer_node_set_pad_probe_cb().
  The GstBuffer pointer flowing through the pad is passed as a void pointer and
  it is only readable.
- Add media_streamer_node_set_pad_probe_cb
  Sets a callback function to be invoked when data flows to a pad of node specified by pad_name.
  The callback can be registered with all pads in node using pad_name. However, only one per pad is possible.
- Add media_streamer_node_unset_pad_probe_cb
  Unsets the pad probe callback function.
  Unsets a callback function of a pad of @a node specified by pad name.
- Add test code

[Issue type] New feature
[Version] 0.1.130

Change-Id: I4ec3e91588edfe6185537530169ae9f7a4986dcc
Signed-off-by: Hyunil <hyunil46.park@samsung.com>
include/media_streamer_internal.h [new file with mode: 0644]
include/media_streamer_priv.h
packaging/capi-media-streamer.spec
src/media_streamer.c
src/media_streamer_internal.c [new file with mode: 0644]
test/media_streamer_test.c