diff options
author | Andreas Huber <andih@google.com> | 2010-08-30 12:46:12 -0700 |
---|---|---|
committer | Andreas Huber <andih@google.com> | 2010-08-30 12:46:12 -0700 |
commit | a1ffe49c7d537bf2a16fc3eb32b0ecc6d72bdf8a (patch) | |
tree | 8ea3ebaca6f9020bb8381260e61e6b7633ebb3ca /media/libmediaplayerservice | |
parent | e56121bc4cb29c91d736eab181b1f51c4f125e78 (diff) | |
download | frameworks_av-a1ffe49c7d537bf2a16fc3eb32b0ecc6d72bdf8a.zip frameworks_av-a1ffe49c7d537bf2a16fc3eb32b0ecc6d72bdf8a.tar.gz frameworks_av-a1ffe49c7d537bf2a16fc3eb32b0ecc6d72bdf8a.tar.bz2 |
Reverse the default setting of media.stagefright.enable-{rtsp,record} in preparation for building without opencore.
Change-Id: I1ca6bd8faba0185f9694f9dc04d2b3e6a7ab5ac3
related-to-bug: 2370115
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 |