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:
committed by
waddlesplash
parent
12552deffc
commit
5d898e77d2
@@ -72,7 +72,7 @@ MediaFilePlayer::MediaFilePlayer(const char* media_type,
|
|||||||
if (fInitCheck != B_OK)
|
if (fInitCheck != B_OK)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
memset(&fPlayFormat, 0, sizeof(fPlayFormat));
|
fPlayFormat.Clear();
|
||||||
|
|
||||||
for (int i=0; i < fPlayFile->CountTracks(); i++) {
|
for (int i=0; i < fPlayFile->CountTracks(); i++) {
|
||||||
BMediaTrack* track = fPlayFile->TrackAt(i);
|
BMediaTrack* track = fPlayFile->TrackAt(i);
|
||||||
|
|||||||
Reference in New Issue
Block a user