payload: {"action":"created","comment":{"url":"https://api.github.com/repos/Samsung/TizenRT/pulls/comments/308104179","pull_request_review_id":267618660,"id":308104179,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDMwODEwNDE3OQ==","diff_hunk":"@@ -0,0 +1,191 @@\n+/* ****************************************************************\n+ *\n+ * Copyright 2019 Samsung Electronics All Rights Reserved.\n+ *\n+ * Licensed under the Apache License, Version 2.0 (the \"License\");\n+ * you may not use this file except in compliance with the License.\n+ * You may obtain a copy of the License at\n+ *\n+ *      http://www.apache.org/licenses/LICENSE-2.0\n+ *\n+ * Unless required by applicable law or agreed to in writing, software\n+ * distributed under the License is distributed on an \"AS IS\" BASIS,\n+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+ * See the License for the specific language governing permissions and\n+ * limitations under the License.\n+ *\n+ ******************************************************************/\n+\n+#include \"StreamHandler.h\"\n+\n+#include <debug.h>\n+\n+#ifndef CONFIG_HANDLER_STREAM_BUFFER_SIZE\n+#define CONFIG_HANDLER_STREAM_BUFFER_SIZE 4096\n+#endif\n+\n+#ifndef CONFIG_HANDLER_STREAM_BUFFER_THRESHOLD\n+#define CONFIG_HANDLER_STREAM_BUFFER_THRESHOLD 2048\n+#endif\n+\n+namespace media {\n+namespace stream {\n+\n+StreamHandler::StreamHandler() :\n+\tmWorker(0),\n+\tmWorkerName(\"StreamWorker\"),\n+\tmWorkerStackSize(4096),\n+\tmIsWorkerAlive(false)\n+{\n+}\n+\n+bool StreamHandler::open()\n+{\n+\tif (!getStreamBuffer()) {\n+\t\tauto streamBuffer = StreamBuffer::Builder()\n+\t\t\t\t\t\t\t\t.setBufferSize(CONFIG_HANDLER_STREAM_BUFFER_SIZE)\n+\t\t\t\t\t\t\t\t.setThreshold(CONFIG_HANDLER_STREAM_BUFFER_THRESHOLD)\n+\t\t\t\t\t\t\t\t.build();\n+\n+\t\tif (!streamBuffer) {\n+\t\t\tmeddbg(\"streamBuffer is nullptr!\\n\");\n+\t\t\treturn false;\n+\t\t}\n+\n+\t\tsetStreamBuffer(streamBuffer);\n+\t}\n+\n+\tif (!(mDataSource->open() && registerCodec(mDataSource->getAudioType(), mDataSource->getChannels(), mDataSource->getSampleRate()))) {\n+\t\treturn false;\n+\t}\n+\n+\tstart();\n+\treturn true;\n+}\n+\n+bool StreamHandler::close()\n+{\n+\tstop();\n+\tunregisterCodec();\n+\treturn mDataSource->close();\n+}\n+\n+bool StreamHandler::start()\n+{\n+\tmedvdbg(\"StreamHandler::start()\\n\");\n+\tif (!mDataSource->isPrepared()) {","path":"framework/src/media/StreamHandler.cpp","position":76,"original_position":76,"commit_id":"afc813c3f0c8c636102bcbce9fc038acafc02891","original_commit_id":"afc813c3f0c8c636102bcbce9fc038acafc02891","user":{"login":"Taejun-Kwon","id":25811447,"node_id":"MDQ6VXNlcjI1ODExNDQ3","avatar_url":"https://avatars1.githubusercontent.com/u/25811447?v=4","gravatar_id":"","url":"https://api.github.com/users/Taejun-Kwon","html_url":"https://github.com/Taejun-Kwon","followers_url":"https://api.github.com/users/Taejun-Kwon/followers","following_url":"https://api.github.com/users/Taejun-Kwon/following{/other_user}","gists_url":"https://api.github.com/users/Taejun-Kwon/gists{/gist_id}","starred_url":"https://api.github.com/users/Taejun-Kwon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Taejun-Kwon/subscriptions","organizations_url":"https://api.github.com/users/Taejun-Kwon/orgs","repos_url":"https://api.github.com/users/Taejun-Kwon/repos","events_url":"https://api.github.com/users/Taejun-Kwon/events{/privacy}","received_events_url":"https://api.github.com/users/Taejun-Kwon/received_events","type":"User","site_admin":false},"body":"if (mDataSource && !mDataSource->isPrepared())","created_at":"2019-07-29T08:16:22Z","updated_at":"2019-07-29T08:26:16Z","html_url":"https://github.com/Samsung/TizenRT/pull/3573#discussion_r308104179","pull_request_url":"https://api.github.com/repos/Samsung/TizenRT/pulls/3573","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/Samsung/TizenRT/pulls/comments/308104179"},"html":{"href":"https://github.com/Samsung/TizenRT/pull/3573#discussion_r308104179"},"pull_request":{"href":"https://api.github.com/repos/Samsung/TizenRT/pulls/3573"}}},"pull_request":{"url":"https://api.github.com/repos/Samsung/TizenRT/pulls/3573","id":298420811,"node_id":"MDExOlB1bGxSZXF1ZXN0Mjk4NDIwODEx","html_url":"https://github.com/Samsung/TizenRT/pull/3573","diff_url":"https://github.com/Samsung/TizenRT/pull/3573.diff","patch_url":"https://github.com/Samsung/TizenRT/pull/3573.patch","issue_url":"https://api.github.com/repos/Samsung/TizenRT/issues/3573","number":3573,"state":"open","locked":false,"title":"framework/media: Add StreamHandler","user":{"login":"junmin-kim","id":25811851,"node_id":"MDQ6VXNlcjI1ODExODUx","avatar_url":"https://avatars0.githubusercontent.com/u/25811851?v=4","gravatar_id":"","url":"https://api.github.com/users/junmin-kim","html_url":"https://github.com/junmin-kim","followers_url":"https://api.github.com/users/junmin-kim/followers","following_url":"https://api.github.com/users/junmin-kim/following{/other_user}","gists_url":"https://api.github.com/users/junmin-kim/gists{/gist_id}","starred_url":"https://api.github.com/users/junmin-kim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/junmin-kim/subscriptions","organizations_url":"https://api.github.com/users/junmin-kim/orgs","repos_url":"https://api.github.com/users/junmin-kim/repos","events_url":"https://api.github.com/users/junmin-kim/events{/privacy}","received_events_url":"https://api.github.com/users/junmin-kim/received_events","type":"User","site_admin":false},"body":"StreamHandler is base class of InputHandler and OutputHandler","created_at":"2019-07-17T11:13:45Z","updated_at":"2019-07-29T08:26:15Z","closed_at":null,"merged_at":null,"merge_commit_sha":"391685619f19b3f78bd421c9af3d2262f2b6a971","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/Samsung/TizenRT/pulls/3573/commits","review_comments_url":"https://api.github.com/repos/Samsung/TizenRT/pulls/3573/comments","review_comment_url":"https://api.github.com/repos/Samsung/TizenRT/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Samsung/TizenRT/issues/3573/comments","statuses_url":"https://api.github.com/repos/Samsung/TizenRT/statuses/afc813c3f0c8c636102bcbce9fc038acafc02891","head":{"label":"junmin-kim:media_streamhandler","ref":"media_streamhandler","sha":"afc813c3f0c8c636102bcbce9fc038acafc02891","user":{"login":"junmin-kim","id":25811851,"node_id":"MDQ6VXNlcjI1ODExODUx","avatar_url":"https://avatars0.githubusercontent.com/u/25811851?v=4","gravatar_id":"","url":"https://api.github.com/users/junmin-kim","html_url":"https://github.com/junmin-kim","followers_url":"https://api.github.com/users/junmin-kim/followers","following_url":"https://api.github.com/users/junmin-kim/following{/other_user}","gists_url":"https://api.github.com/users/junmin-kim/gists{/gist_id}","starred_url":"https://api.github.com/users/junmin-kim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/junmin-kim/subscriptions","organizations_url":"https://api.github.com/users/junmin-kim/orgs","repos_url":"https://api.github.com/users/junmin-kim/repos","events_url":"https://api.github.com/users/junmin-kim/events{/privacy}","received_events_url":"https://api.github.com/users/junmin-kim/received_events","type":"User","site_admin":false},"repo":{"id":134812457,"node_id":"MDEwOlJlcG9zaXRvcnkxMzQ4MTI0NTc=","name":"TizenRT","full_name":"junmin-kim/TizenRT","private":false,"owner":{"login":"junmin-kim","id":25811851,"node_id":"MDQ6VXNlcjI1ODExODUx","avatar_url":"https://avatars0.githubusercontent.com/u/25811851?v=4","gravatar_id":"","url":"https://api.github.com/users/junmin-kim","html_url":"https://github.com/junmin-kim","followers_url":"https://api.github.com/users/junmin-kim/followers","following_url":"https://api.github.com/users/junmin-kim/following{/other_user}","gists_url":"https://api.github.com/users/junmin-kim/gists{/gist_id}","starred_url":"https://api.github.com/users/junmin-kim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/junmin-kim/subscriptions","organizations_url":"https://api.github.com/users/junmin-kim/orgs","repos_url":"https://api.github.com/users/junmin-kim/repos","events_url":"https://api.github.com/users/junmin-kim/events{/privacy}","received_events_url":"https://api.github.com/users/junmin-kim/received_events","type":"User","site_admin":false},"html_url":"https://github.com/junmin-kim/TizenRT","description":"TizenRT is a lightweight RTOS-based platform to support low-end IoT devices","fork":true,"url":"https://api.github.com/repos/junmin-kim/TizenRT","forks_url":"https://api.github.com/repos/junmin-kim/TizenRT/forks","keys_url":"https://api.github.com/repos/junmin-kim/TizenRT/keys{/key_id}","collaborators_url":"https://api.github.com/repos/junmin-kim/TizenRT/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/junmin-kim/TizenRT/teams","hooks_url":"https://api.github.com/repos/junmin-kim/TizenRT/hooks","issue_events_url":"https://api.github.com/repos/junmin-kim/TizenRT/issues/events{/number}","events_url":"https://api.github.com/repos/junmin-kim/TizenRT/events","assignees_url":"https://api.github.com/repos/junmin-kim/TizenRT/assignees{/user}","branches_url":"https://api.github.com/repos/junmin-kim/TizenRT/branches{/branch}","tags_url":"https://api.github.com/repos/junmin-kim/TizenRT/tags","blobs_url":"https://api.github.com/repos/junmin-kim/TizenRT/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/junmin-kim/TizenRT/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/junmin-kim/TizenRT/git/refs{/sha}","trees_url":"https://api.github.com/repos/junmin-kim/TizenRT/git/trees{/sha}","statuses_url":"https://api.github.com/repos/junmin-kim/TizenRT/statuses/{sha}","languages_url":"https://api.github.com/repos/junmin-kim/TizenRT/languages","stargazers_url":"https://api.github.com/repos/junmin-kim/TizenRT/stargazers","contributors_url":"https://api.github.com/repos/junmin-kim/TizenRT/contributors","subscribers_url":"https://api.github.com/repos/junmin-kim/TizenRT/subscribers","subscription_url":"https://api.github.com/repos/junmin-kim/TizenRT/subscription","commits_url":"https://api.github.com/repos/junmin-kim/TizenRT/commits{/sha}","git_commits_url":"https://api.github.com/repos/junmin-kim/TizenRT/git/commits{/sha}","comments_url":"https://api.github.com/repos/junmin-kim/TizenRT/comments{/number}","issue_comment_url":"https://api.github.com/repos/junmin-kim/TizenRT/issues/comments{/number}","contents_url":"https://api.github.com/repos/junmin-kim/TizenRT/contents/{+path}","compare_url":"https://api.github.com/repos/junmin-kim/TizenRT/compare/{base}...{head}","merges_url":"https://api.github.com/repos/junmin-kim/TizenRT/merges","archive_url":"https://api.github.com/repos/junmin-kim/TizenRT/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/junmin-kim/TizenRT/downloads","issues_url":"https://api.github.com/repos/junmin-kim/TizenRT/issues{/number}","pulls_url":"https://api.github.com/repos/junmin-kim/TizenRT/pulls{/number}","milestones_url":"https://api.github.com/repos/junmin-kim/TizenRT/milestones{/number}","notifications_url":"https://api.github.com/repos/junmin-kim/TizenRT/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/junmin-kim/TizenRT/labels{/name}","releases_url":"https://api.github.com/repos/junmin-kim/TizenRT/releases{/id}","deployments_url":"https://api.github.com/repos/junmin-kim/TizenRT/deployments","created_at":"2018-05-25T06:22:15Z","updated_at":"2019-07-29T05:30:21Z","pushed_at":"2019-07-29T05:43:57Z","git_url":"git://github.com/junmin-kim/TizenRT.git","ssh_url":"git@github.com:junmin-kim/TizenRT.git","clone_url":"https://github.com/junmin-kim/TizenRT.git","svn_url":"https://github.com/junmin-kim/TizenRT","homepage":"","size":123359,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":0,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"Samsung:master","ref":"master","sha":"9dad7a1c27b428fea0248d90d088192a4f91bff8","user":{"login":"Samsung","id":6210390,"node_id":"MDEyOk9yZ2FuaXphdGlvbjYyMTAzOTA=","avatar_url":"https://avatars3.githubusercontent.com/u/6210390?v=4","gravatar_id":"","url":"https://api.github.com/users/Samsung","html_url":"https://github.com/Samsung","followers_url":"https://api.github.com/users/Samsung/followers","following_url":"https://api.github.com/users/Samsung/following{/other_user}","gists_url":"https://api.github.com/users/Samsung/gists{/gist_id}","starred_url":"https://api.github.com/users/Samsung/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Samsung/subscriptions","organizations_url":"https://api.github.com/users/Samsung/orgs","repos_url":"https://api.github.com/users/Samsung/repos","events_url":"https://api.github.com/users/Samsung/events{/privacy}","received_events_url":"https://api.github.com/users/Samsung/received_events","type":"Organization","site_admin":false},"repo":{"id":82517252,"node_id":"MDEwOlJlcG9zaXRvcnk4MjUxNzI1Mg==","name":"TizenRT","full_name":"Samsung/TizenRT","private":false,"owner":{"login":"Samsung","id":6210390,"node_id":"MDEyOk9yZ2FuaXphdGlvbjYyMTAzOTA=","avatar_url":"https://avatars3.githubusercontent.com/u/6210390?v=4","gravatar_id":"","url":"https://api.github.com/users/Samsung","html_url":"https://github.com/Samsung","followers_url":"https://api.github.com/users/Samsung/followers","following_url":"https://api.github.com/users/Samsung/following{/other_user}","gists_url":"https://api.github.com/users/Samsung/gists{/gist_id}","starred_url":"https://api.github.com/users/Samsung/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Samsung/subscriptions","organizations_url":"https://api.github.com/users/Samsung/orgs","repos_url":"https://api.github.com/users/Samsung/repos","events_url":"https://api.github.com/users/Samsung/events{/privacy}","received_events_url":"https://api.github.com/users/Samsung/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/Samsung/TizenRT","description":"TizenRT is a lightweight RTOS-based platform to support low-end IoT devices","fork":false,"url":"https://api.github.com/repos/Samsung/TizenRT","forks_url":"https://api.github.com/repos/Samsung/TizenRT/forks","keys_url":"https://api.github.com/repos/Samsung/TizenRT/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Samsung/TizenRT/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Samsung/TizenRT/teams","hooks_url":"https://api.github.com/repos/Samsung/TizenRT/hooks","issue_events_url":"https://api.github.com/repos/Samsung/TizenRT/issues/events{/number}","events_url":"https://api.github.com/repos/Samsung/TizenRT/events","assignees_url":"https://api.github.com/repos/Samsung/TizenRT/assignees{/user}","branches_url":"https://api.github.com/repos/Samsung/TizenRT/branches{/branch}","tags_url":"https://api.github.com/repos/Samsung/TizenRT/tags","blobs_url":"https://api.github.com/repos/Samsung/TizenRT/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Samsung/TizenRT/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Samsung/TizenRT/git/refs{/sha}","trees_url":"https://api.github.com/repos/Samsung/TizenRT/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Samsung/TizenRT/statuses/{sha}","languages_url":"https://api.github.com/repos/Samsung/TizenRT/languages","stargazers_url":"https://api.github.com/repos/Samsung/TizenRT/stargazers","contributors_url":"https://api.github.com/repos/Samsung/TizenRT/contributors","subscribers_url":"https://api.github.com/repos/Samsung/TizenRT/subscribers","subscription_url":"https://api.github.com/repos/Samsung/TizenRT/subscription","commits_url":"https://api.github.com/repos/Samsung/TizenRT/commits{/sha}","git_commits_url":"https://api.github.com/repos/Samsung/TizenRT/git/commits{/sha}","comments_url":"https://api.github.com/repos/Samsung/TizenRT/comments{/number}","issue_comment_url":"https://api.github.com/repos/Samsung/TizenRT/issues/comments{/number}","contents_url":"https://api.github.com/repos/Samsung/TizenRT/contents/{+path}","compare_url":"https://api.github.com/repos/Samsung/TizenRT/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Samsung/TizenRT/merges","archive_url":"https://api.github.com/repos/Samsung/TizenRT/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Samsung/TizenRT/downloads","issues_url":"https://api.github.com/repos/Samsung/TizenRT/issues{/number}","pulls_url":"https://api.github.com/repos/Samsung/TizenRT/pulls{/number}","milestones_url":"https://api.github.com/repos/Samsung/TizenRT/milestones{/number}","notifications_url":"https://api.github.com/repos/Samsung/TizenRT/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Samsung/TizenRT/labels{/name}","releases_url":"https://api.github.com/repos/Samsung/TizenRT/releases{/id}","deployments_url":"https://api.github.com/repos/Samsung/TizenRT/deployments","created_at":"2017-02-20T04:38:30Z","updated_at":"2019-07-29T00:00:49Z","pushed_at":"2019-07-29T06:22:50Z","git_url":"git://github.com/Samsung/TizenRT.git","ssh_url":"git@github.com:Samsung/TizenRT.git","clone_url":"https://github.com/Samsung/TizenRT.git","svn_url":"https://github.com/Samsung/TizenRT","homepage":"","size":123359,"stargazers_count":278,"watchers_count":278,"language":"C","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":404,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":79,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":404,"open_issues":79,"watchers":278,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Samsung/TizenRT/pulls/3573"},"html":{"href":"https://github.com/Samsung/TizenRT/pull/3573"},"issue":{"href":"https://api.github.com/repos/Samsung/TizenRT/issues/3573"},"comments":{"href":"https://api.github.com/repos/Samsung/TizenRT/issues/3573/comments"},"review_comments":{"href":"https://api.github.com/repos/Samsung/TizenRT/pulls/3573/comments"},"review_comment":{"href":"https://api.github.com/repos/Samsung/TizenRT/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Samsung/TizenRT/pulls/3573/commits"},"statuses":{"href":"https://api.github.com/repos/Samsung/TizenRT/statuses/afc813c3f0c8c636102bcbce9fc038acafc02891"}},"author_association":"CONTRIBUTOR"}}
other: {"actor":{"display_login":"Taejun-Kwon"}}