diff options
Diffstat (limited to 'media/libmediaplayerservice')
-rw-r--r-- | media/libmediaplayerservice/MediaPlayerService.cpp | 4 | ||||
-rw-r--r-- | media/libmediaplayerservice/MediaRecorderClient.cpp | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/media/libmediaplayerservice/MediaPlayerService.cpp b/media/libmediaplayerservice/MediaPlayerService.cpp index b5972e7..aba5f52 100644 --- a/media/libmediaplayerservice/MediaPlayerService.cpp +++ b/media/libmediaplayerservice/MediaPlayerService.cpp @@ -737,8 +737,8 @@ player_type getPlayerType(const char* url) if (!strncasecmp(url, "rtsp://", 7)) { char value[PROPERTY_VALUE_MAX]; - if (!property_get("media.stagefright.enable-rtsp", value, NULL) - || (strcmp(value, "1") && strcasecmp(value, "true"))) { + if (property_get("media.stagefright.enable-rtsp", value, NULL) + && (strcmp(value, "1") && strcasecmp(value, "true"))) { // For now, we're going to use PV for rtsp-based playback // by default until we can clear up a few more issues. return PV_PLAYER; diff --git a/media/libmediaplayerservice/MediaRecorderClient.cpp b/media/libmediaplayerservice/MediaRecorderClient.cpp index 73862c3..19915f1 100644 --- a/media/libmediaplayerservice/MediaRecorderClient.cpp +++ b/media/libmediaplayerservice/MediaRecorderClient.cpp @@ -295,8 +295,8 @@ MediaRecorderClient::MediaRecorderClient(const sp<MediaPlayerService>& service, mPid = pid; char value[PROPERTY_VALUE_MAX]; - if (property_get("media.stagefright.enable-record", value, NULL) - && (!strcmp(value, "1") || !strcasecmp(value, "true"))) { + if (!property_get("media.stagefright.enable-record", value, NULL) + || !strcmp(value, "1") || !strcasecmp(value, "true")) { mRecorder = new StagefrightRecorder; } else #ifndef NO_OPENCORE |