[vlc-commits] npapi: remove redundant checks
Daniel Amm
git at videolan.org
Fri May 22 10:21:20 CEST 2015
npapi-vlc | branch: master | Daniel Amm <da2424 at t-online.de> | Thu May 21 20:24:18 2015 +0200| [ccf162c9c0284187dcf607bf3e56224112ff1082] | committer: Jean-Baptiste Kempf
npapi: remove redundant checks
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/npapi-vlc.git/?a=commit;h=ccf162c9c0284187dcf607bf3e56224112ff1082
---
npapi/npruntime/npolibvlc.cpp | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/npapi/npruntime/npolibvlc.cpp b/npapi/npruntime/npolibvlc.cpp
index 598995a..5329e8c 100644
--- a/npapi/npruntime/npolibvlc.cpp
+++ b/npapi/npruntime/npolibvlc.cpp
@@ -308,8 +308,8 @@ LibvlcAudioNPObject::setProperty(int index, const NPVariant &value)
auto tracks = mp.audioTrackDescription();
if ( v >= tracks.size() )
return INVOKERESULT_INVALID_VALUE;
- if ( mp.setAudioTrack( tracks[v].id() ) )
- return INVOKERESULT_NO_ERROR;
+ mp.setAudioTrack( tracks[v].id() );
+ return INVOKERESULT_NO_ERROR;
}
return INVOKERESULT_INVALID_VALUE;
case ID_audio_channel:
@@ -1209,8 +1209,8 @@ LibvlcSubtitleNPObject::setProperty(int index, const NPVariant &value)
auto tracks = mp.spuDescription();
if ( v >= tracks.size() )
return INVOKERESULT_INVALID_ARGS;
- if ( mp.setSpu( tracks[ v ].id() ) )
- return INVOKERESULT_NO_ERROR;
+ mp.setSpu( tracks[ v ].id() );
+ return INVOKERESULT_NO_ERROR;
}
return INVOKERESULT_INVALID_VALUE;
}
More information about the vlc-commits
mailing list