mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
Renamed Video.setPath() to Video.setGStreamerPath(), fixed logic in Capture.addResFromStructure()
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user