Merge "Reverse the default setting of media.stagefright.enable-{rtsp,record} in preparation for building without opencore." into gingerbread
This commit is contained in:
committed by
Android (Google) Code Review
commit
681c5ff208
@@ -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;
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user