-
Notifications
You must be signed in to change notification settings - Fork 585
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
framework/Media: Add reset API for recorder and player. #6569
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code changes looks fine
* @details @b #include <media/MediaPlayer.h> | ||
* This function is a synchronous API | ||
* @return The result of the reset operation | ||
* @since TizenRT v2.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this correct?
TizenRT v2.0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks.
Updated.
0738a3c
to
05705c5
Compare
mInputHandler.close(); | ||
if (reset_audio_stream_out(mStreamInfo->id) != AUDIO_MANAGER_SUCCESS) { | ||
meddbg("MediaPlayer reset fail : reset_audio_stream_out fail\n"); | ||
return PLAYER_ERROR_INTERNAL_OPERATION_FAILED; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In my opinion, if another thread already use audio manager, it should keep going on release resource in media.
so I think some warning message is enough, we should not return error.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks.
Changes Done as requested.
This commit add reset API for recorder and player which will help application to do reset for recorder and player to IDLE state.
05705c5
to
0523ad0
Compare
This commit add reset API for recorder and player which will help application to do reset for recorder and player to IDLE state.