Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 863fdafd authored by Keith Mok's avatar Keith Mok Committed by Bruno Martins
Browse files

hal: Garbage output in logcat

AudioPolicyManagerCustom is outputting garbage
for the following log and potentially crashing it.
    AudioPolicyManagerCustom: offload disabled by av.streaming.offload.enable = ^[;¤¶
It should not use prop_value.

Change-Id: I5dc388d273c12a7c736faa50aeeab684f9600125
parent 14828272
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -461,7 +461,8 @@ bool AudioPolicyManagerCustom::isOffloadSupported(const audio_offload_info_t& of
        const bool allowOffloadStreamingWithVideo = property_get_bool("av.streaming.offload.enable",
                                                                   false /*default value*/);
        if(offloadInfo.has_video && offloadInfo.is_streaming && !allowOffloadStreamingWithVideo) {
            ALOGW("offload disabled by av.streaming.offload.enable = %s ", propValue );
            ALOGW("offload disabled by av.streaming.offload.enable = %d",
                    allowOffloadStreamingWithVideo);
            return false;
        }