Media addon server: Suppress warnings

Use media_format.Clear() to suppress -Werror=class-memaccess
pointed out by gcc8.

Change-Id: Ib75ee4cb7aa8018af25dd6bdcf79b4dd7c14d240
This commit is contained in:
Murai Takashi
2018-07-10 21:19:35 +00:00
committed by waddlesplash
parent 12552deffc
commit 5d898e77d2
+1 -1
View File
@@ -72,7 +72,7 @@ MediaFilePlayer::MediaFilePlayer(const char* media_type,
if (fInitCheck != B_OK)
return;
memset(&fPlayFormat, 0, sizeof(fPlayFormat));
fPlayFormat.Clear();
for (int i=0; i < fPlayFile->CountTracks(); i++) {
BMediaTrack* track = fPlayFile->TrackAt(i);