Skip to content

Commit

Permalink
Fix code review issue
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaowei-guan committed Dec 15, 2023
1 parent 2cb039b commit 8902865
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import 'messages.g.dart';
import 'tracks.dart';

/// An implementation of [VideoPlayerPlatform] that uses the
/// Pigeon-generated [TizenVideoPlayerApi].
/// Pigeon-generated [VideoPlayerVideoholeApi].
class VideoPlayerTizen extends VideoPlayerPlatform {
final VideoPlayerVideoholeApi _api = VideoPlayerVideoholeApi();

Expand Down
1 change: 0 additions & 1 deletion packages/video_player_videohole/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ flutter:
fileName: video_player_tizen_plugin.h

dependencies:
ffi: ^2.0.1
flutter:
sdk: flutter
html: ^0.15.0
Expand Down
1 change: 0 additions & 1 deletion packages/video_player_videohole/tizen/src/drm_manager.cc
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,6 @@ bool DrmManager::SecurityInitCompleteCB(int *drm_handle, unsigned int len,
}

int DrmManager::SetChallenge(const std::string &media_url) {
LOG_ERROR("[DrmManager] SetChallenge url = %s", media_url.c_str());
if (!drm_session_) {
LOG_ERROR("[DrmManager] Invalid drm session.");
return DM_ERROR_INVALID_SESSION;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -164,12 +164,11 @@ ErrorOr<PlayerMessage> VideoPlayerTizenPlugin::Create(
return FlutterError("Invalid argument", "Either asset or uri must be set.");
}

int64_t player_id = 0;
auto player = std::make_unique<MediaPlayer>(
plugin_registrar_->messenger(),
FlutterDesktopPluginRegistrarGetView(registrar_ref_));
player_id = player->Create(uri, drm_type, license_server_url, prebuffer_mode,
http_headers);
int64_t player_id = player->Create(uri, drm_type, license_server_url,
prebuffer_mode, http_headers);
if (player_id == -1) {
return FlutterError("Operation failed", "Failed to create a player.");
}
Expand Down

0 comments on commit 8902865

Please sign in to comment.