Skip to content

Commit 9f5c714

Browse files
author
Manik Sachdeva
authored
fix #174 (#176)
1 parent db65a18 commit 9f5c714

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

src/main/java/com/opentok/ArchiveProperties.java

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public static class Builder {
5151
private boolean hasAudio = true;
5252
private boolean hasVideo = true;
5353
private OutputMode outputMode = OutputMode.COMPOSED;
54-
private ArchiveLayout layout = new ArchiveLayout(ArchiveLayout.Type.BESTFIT);
54+
private ArchiveLayout layout = null;
5555

5656

5757
/**
@@ -206,10 +206,11 @@ public Map<String, Collection<String>> toMap() {
206206
valueList.add(outputMode.toString());
207207
params.put("outputMode", valueList);
208208

209-
valueList = new ArrayList<String>();
210-
valueList.add(layout.toString());
211-
params.put("layout", valueList);
212-
209+
if (layout != null) {
210+
valueList = new ArrayList<String>();
211+
valueList.add(layout.toString());
212+
params.put("layout", valueList);
213+
}
213214

214215
return params;
215216
}

0 commit comments

Comments
 (0)