Skip to content

Commit 05c08d8

Browse files
committed
Remove not used code
1 parent 2799676 commit 05c08d8

File tree

1 file changed

+1
-26
lines changed

1 file changed

+1
-26
lines changed

packages/video_player_avplay/tizen/src/plus_player.cc

Lines changed: 1 addition & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ int64_t PlusPlayer::Create(const std::string &uri,
8282
LOG_ERROR("[PlusPlayer] Fail to open uri : %s.", uri.c_str());
8383
return -1;
8484
}
85+
8586
url_ = uri;
8687
create_message_ = create_message;
8788
LOG_INFO("[PlusPlayer] Uri: %s", uri.c_str());
@@ -199,15 +200,6 @@ bool PlusPlayer::Activate() {
199200
LOG_ERROR("[PlusPlayer] Fail to activate.");
200201
return false;
201202
}
202-
/*
203-
if (!::Activate(player_, plusplayer::kTrackTypeAudio)) {
204-
LOG_ERROR("[PlusPlayer] Fail to activate audio.");
205-
return false;
206-
}
207-
if (!::Activate(player_, plusplayer::kTrackTypeSubtitle)) {
208-
LOG_ERROR("[PlusPlayer] Fail to activate subtitle.");
209-
}
210-
*/
211203
return true;
212204
}
213205

@@ -216,20 +208,10 @@ bool PlusPlayer::Deactivate() {
216208
plusplayer_stop(player_);
217209
return true;
218210
}
219-
220211
if (plusplayer_deactivate_audio(player_) != PLUSPLAYER_ERROR_TYPE_NONE) {
221212
LOG_ERROR("[PlusPlayer] Fail to deactivate video.");
222213
return false;
223214
}
224-
/*
225-
if (!::Deactivate(player_, plusplayer::kTrackTypeAudio)) {
226-
LOG_ERROR("[PlusPlayer] Fail to deactivate audio.");
227-
return false;
228-
}
229-
if (!::Deactivate(player_, plusplayer::kTrackTypeSubtitle)) {
230-
LOG_ERROR("[PlusPlayer] Fail to deactivate subtitle.");
231-
}
232-
*/
233215
return true;
234216
}
235217

@@ -745,17 +727,11 @@ bool PlusPlayer::SetBufferConfig(const std::string &key, int64_t value) {
745727

746728
void PlusPlayer::SetStreamingProperty(const std::string &type,
747729
const std::string &value) {
748-
if (!player_) {
749-
LOG_ERROR("[PlusPlayer] Player not created.");
750-
return;
751-
}
752730
plusplayer_state_e state = plusplayer_get_state(player_);
753-
754731
if (state == PLUSPLAYER_STATE_NONE) {
755732
LOG_ERROR("[PlusPlayer] Player is in invalid state[%d]", state);
756733
return;
757734
}
758-
759735
if ((!create_message_.format_hint() ||
760736
create_message_.format_hint()->empty() ||
761737
*create_message_.format_hint() != "dash") &&
@@ -766,7 +742,6 @@ void PlusPlayer::SetStreamingProperty(const std::string &type,
766742
type.c_str());
767743
return;
768744
}
769-
770745
LOG_INFO("[PlusPlayer] SetStreamingProp: type[%s], value[%s]", type.c_str(),
771746
value.c_str());
772747
plusplayer_set_property(player_, ConvertPropertyType(type), value.c_str());

0 commit comments

Comments
 (0)