diff --git a/CHANGELOG.md b/CHANGELOG.md index 0b70eb43..bde93031 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +4.7.9 +======================== +* Fix stream resolution detection for Camsoda + 4.7.8 ======================== * Fix Stripchat recordings diff --git a/common/src/main/java/ctbrec/sites/camsoda/CamsodaModel.java b/common/src/main/java/ctbrec/sites/camsoda/CamsodaModel.java index f6596bf3..bdf6a68e 100644 --- a/common/src/main/java/ctbrec/sites/camsoda/CamsodaModel.java +++ b/common/src/main/java/ctbrec/sites/camsoda/CamsodaModel.java @@ -193,10 +193,8 @@ public class CamsodaModel extends AbstractModel { @Override public State getOnlineState(boolean failFast) throws IOException, ExecutionException { - if (!failFast) { - if (onlineState == UNKNOWN) { - loadModel(); - } + if (!failFast && onlineState == UNKNOWN) { + loadModel(); } return onlineState; } @@ -213,10 +211,11 @@ public class CamsodaModel extends AbstractModel { } else { try { List sources = getStreamSources(); + LOG.debug("stream sources {}", sources); if (sources.isEmpty()) { return new int[]{0, 0}; } else { - StreamSource src = sources.get(0); + StreamSource src = sources.get(sources.size() - 1); resolution = new int[]{src.width, src.height}; return resolution; }