Skip to content

Commit c2f03c2

Browse files
committed
Content fixes.
1 parent e7335a6 commit c2f03c2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/refactoring_guru/facade/example/facade/VideoConversionFacade.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ public File convertVideo(String fileName, String format) {
1111
Codec sourceCodec = CodecFactory.extract(file);
1212
Codec destinationCodec;
1313
if (format.equals("mp4")) {
14-
destinationCodec = new OggCompressionCodec();
15-
} else {
1614
destinationCodec = new MPEG4CompressionCodec();
15+
} else {
16+
destinationCodec = new OggCompressionCodec();
1717
}
1818
VideoFile buffer = BitrateReader.read(file, sourceCodec);
1919
VideoFile intermediateResult = BitrateReader.convert(buffer, destinationCodec);

0 commit comments

Comments
 (0)