Lines Matching refs:ret

365     int32_t ret = sample.adapter->SetVideoSurface(sample.surface);
367 if (ret != 0) {
368 printf("[%s: %d] ret:%d\n", __func__, __LINE__, ret);
409 int32_t ret = pthread_create(&sample.process, &attr, streamProcess, &sample);
410 if (ret != 0) {
411 printf("pthread_create failed %d\n", ret);
460 int32_t ret;
464 ret = sample.adapter->Pause();
466 ret = sample.adapter->Play();
469 if (ret != 0) {
470 printf("[%s: %d] ret:%d\n", __func__, __LINE__, ret);
477 int32_t ret;
481 ret = sample.adapter->Pause();
483 ret = sample.adapter->Play();
486 if (ret != 0) {
487 printf("[%s: %d] ret:%d\n", __func__, __LINE__, ret);
591 int32_t ret = sample.adapter->GetDuration(duration);
592 if (ret != 0) {
593 printf("[%s: %d] ret:%d\n", __func__, __LINE__, ret);
597 ret = sample.adapter->GetCurrentTime(currentPosition);
598 if (ret != 0) {
599 printf("[%s: %d] ret:%d\n", __func__, __LINE__, ret);
605 ret = sample.adapter->GetVideoWidth(videoWidth);
606 if (ret != 0) {
607 printf("[%s: %d] ret:%d\n", __func__, __LINE__, ret);
609 ret = sample.adapter->GetVideoHeight(videoHeight);
610 if (ret != 0) {
611 printf("[%s: %d] ret:%d\n", __func__, __LINE__, ret);
615 ret = sample.adapter->GetPlayerState(state);
616 if (ret != 0) {
617 printf("[%s: %d] ret:%d\n", __func__, __LINE__, ret);
632 int32_t ret = sample.adapter->SetVolume(lvolume, rvolume);
633 if (ret != 0) {
634 printf("[%s: %d] ret:%d\n", __func__, __LINE__, ret);
660 int ret;
667 ret = sample.adapter->Pause();
669 ret = sample.adapter->Play();
678 int ret;
693 ret = sample.adapter->GetCurrentTime(currentPosition);
694 printf("##############player GetCurrentTime, ret:%d, time:%lld\n", ret, currentPosition);
710 int32_t ret = sample.adapter->EnableSingleLooping(loop == 1);
711 if (ret != 0) {
712 printf("[%s: %d] ret:%d\n", __func__, __LINE__, ret);
725 int32_t ret = sample.adapter->SetPlaybackSpeed(speed);
726 if (ret != 0) {
727 printf("[%s: %d] ret:%d\n", __func__, __LINE__, ret);
739 int32_t ret = sample.adapter->Rewind(timeMs, PlayerSeekMode::PLAYER_SEEK_PREVIOUS_SYNC);
740 if (ret != 0) {
741 printf("[%s: %d] ret:%d\n", __func__, __LINE__, ret);
757 int32_t ret = sample.adapter->Play();
758 if (ret != 0) {
759 printf("[%s: %d] Play failed ret:%d\n", __func__, __LINE__, ret);
772 int ret;
782 ret = sample.adapter->Pause();
897 int32_t ret = sample.adapter->Stop();
898 printf("Stop, ret:%d\n", ret);
900 ret = sample.adapter->Release();
901 printf("Release, ret:%d\n", ret);