Renamed Video.setPath() to Video.setGStreamerPath(), fixed logic in Capture.addResFromStructure()

This commit is contained in:
codeanticode
2012-08-15 18:35:35 +00:00
parent 683166a783
commit 42ee90895e
2 changed files with 3 additions and 2 deletions
@@ -561,7 +561,8 @@ public class Capture extends PImage implements PConstants {
boolean singleFrac = false;
try {
Fraction fr = str.getFraction("framerate");
res.add(makeResolutionString(w, h, fr.numerator, fr.denominator));
res.add(makeResolutionString(w, h, fr.numerator, fr.denominator));
singleFrac = true;
} catch (Exception e) {
}
@@ -66,7 +66,7 @@ public class Video implements PConstants {
}
static public void setPath(String path) {
static public void setGStreamerPath(String path) {
gstreamerPath = path;
}