question: private void updateMediaInformationLists ( Movie movie ) { List < String > availableCodecs = new ArrayList < > ( videoCodecsObservable ) ; for ( MediaFile mf : movie . getMediaFiles ( MediaFileType . VIDEO ) ) { String codec = mf . getVideoCodec ( ) ; boolean codecFound = false ; for ( String mfCodec : availableCodecs ) { if ( mfCodec . equals ( codec ) ) { codecFound = true ; break ; } } if ( ! codecFound ) { addVideoCodec ( codec ) ; } } availableCodecs = new ArrayList < > ( audioCodecsObservable ) ; for ( MediaFile mf : movie . getMediaFiles ( MediaFileType . VIDEO ) ) { for ( MediaFileAudioStream audio : mf . getAudioStreams ( ) ) { String codec = audio . getCodec ( ) ; boolean codecFound = false ; for ( String mfCodec : availableCodecs ) { if ( mfCodec . equals ( codec ) ) { codecFound = true ; break ; } } if ( ! codecFound ) { addAudioCodec ( codec ) ; } } } }
target:  Update media information used in movies.