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

Unverified Commit f110c2d1 authored by Keith Mok's avatar Keith Mok Committed by Michael Bestas
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: Ib8ce3510a1851f2d88951b8189076ed6879dd05c
parent 4125555d
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -529,7 +529,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;
    }