diff options
| -rw-r--r-- | plugins/rtp/src/device.vala | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/plugins/rtp/src/device.vala b/plugins/rtp/src/device.vala index ce89c8ee..b80d31e3 100644 --- a/plugins/rtp/src/device.vala +++ b/plugins/rtp/src/device.vala @@ -449,6 +449,11 @@ public class Dino.Plugins.Rtp.Device : MediaDevice, Object { Value? framerate = that.get_value("framerate"); if (framerate != null && framerate.type() == typeof(Gst.ValueList) && best_fraction != null) { that.set_value("framerate", best_fraction); + } else if (framerate == null) { + // The source does not support framerate negotiation. Just set a + // reasonable value. The source might be able to honor it and + // should ignore it otherwise. + that.@set("framerate", typeof(Gst.Fraction), 30, 1, null); } debug("Selected caps %s", res.to_string()); return res; |
