Add new APIs to set/unset decoded ready callback of the node 14/235514/6
authorSangchul Lee <sc11.lee@samsung.com>
Fri, 5 Jun 2020 06:00:47 +0000 (15:00 +0900)
committerSangchul Lee <sc11.lee@samsung.com>
Tue, 9 Jun 2020 06:53:00 +0000 (15:53 +0900)
commit384d9ea8c25f2e8d39c464cab2c60c04c23081d1
treec90ce9f9388f30cc858215002884f1c68edd72c3
parent4fb7e66bac8ba28a37ff5bbb92fd961f740eb94e
Add new APIs to set/unset decoded ready callback of the node

This callback will be invoked when the 'pad-added' signal of
a gstreamer element for decoding something in the node is received.

User can utilize this callback to link the decoded source pad
with new node's sink pad for rendering something in the application.

 - int media_streamer_node_set_decoded_ready_cb(media_streamer_node_h node,
                                                media_streamer_node_decoded_ready_cb callback,
                                                void *user_data)
 - typedef void (*media_streamer_node_decoded_ready_cb)(media_streamer_node_h node,
                                                        const char *src_pad_name,
                                                        const char *media_types,
                                                        void *user_data)
 - int media_streamer_node_unset_decoded_ready_cb(media_streamer_node_h node)

Change-Id: I92199bae3b9c3e4028050e26a8ba7ab7b39df2d4
Signed-off-by: Sangchul Lee <sc11.lee@samsung.com>
include/media_streamer.h
include/media_streamer_priv.h
src/media_streamer.c
src/media_streamer_gst_webrtc.c
src/media_streamer_node.c