{"object_kind":"push","event_name":"push","before":"d7aa16aae6da99fdc8c7981a8222677c91f78eb7","after":"0c55d10ecdd2345b33496d6a94337775e47e35de","ref":"refs/heads/master","ref_protected":true,"checkout_sha":"0c55d10ecdd2345b33496d6a94337775e47e35de","message":null,"user_id":3060,"user_name":"Wim Taymans","user_username":"wtaymans","user_email":"[REDACTED]","user_avatar":"https://secure.gravatar.com/avatar/1ca1bed246cb9b95b7ead6d6be96bb09f0c112953140c8bb38b41aedf4465270?s=80&d=identicon","project_id":4753,"project":{"id":4753,"name":"pipewire","description":"Multimedia processing graphs","web_url":"https://gitlab.freedesktop.org/pipewire/pipewire","avatar_url":"https://gitlab.freedesktop.org/uploads/-/system/project/avatar/4753/pipewire.png?v=1795177387","git_ssh_url":"git@ssh.gitlab.freedesktop.org:pipewire/pipewire.git","git_http_url":"https://gitlab.freedesktop.org/pipewire/pipewire.git","namespace":"PipeWire","visibility_level":20,"path_with_namespace":"pipewire/pipewire","default_branch":"master","ci_config_path":"","homepage":"https://gitlab.freedesktop.org/pipewire/pipewire","url":"git@ssh.gitlab.freedesktop.org:pipewire/pipewire.git","ssh_url":"git@ssh.gitlab.freedesktop.org:pipewire/pipewire.git","http_url":"https://gitlab.freedesktop.org/pipewire/pipewire.git"},"commits":[{"id":"0c55d10ecdd2345b33496d6a94337775e47e35de","message":"spa: v4l2: compare frame rates in compare_fraction()\n\ncompare_fraction() compares a V4L2 frame interval (seconds per frame)\nwith a frame rate (frames per second). Before 657dd82a7 it did that by\ncross-multiplying the inverted interval. Since that commit it passes the\ninterval to spa_fraction_cmp() as is, so it compares seconds per frame\nwith frames per second: 1/30 s against 30/1 fps now returns -1 instead\nof 0, and for typical camera values the result is always -1.\n\nIts only users clamp the default frame rate of STEPWISE and CONTINUOUS\nframe intervals to 25/1 within the device's range. With the inverted\ncomparison the second check always fires, so the default becomes the\ndevice's fastest rate: 60/1 instead of 25/1 for a 5..60 fps range, and\n60/1 instead of 30/1 for a 30..60 fps range.\n\nSwap numerator and denominator so the frame rate of the interval is\ncompared. This keeps the exact comparison 657dd82a7 added for\nunreduced intervals (10000/300000 s against 30/1 fps compares equal).\n\nFixes: 657dd82a7 (\"utils: add spa_fraction_cmp\")\n\nCo-Authored-By: Claude Opus 5.5 \n","title":"spa: v4l2: compare frame rates in compare_fraction()","timestamp":"2026-11-20T12:27:08+00:00","url":"https://gitlab.freedesktop.org/pipewire/pipewire/-/commit/0c55d10ecdd2345b33496d6a94337775e47e35de","author":{"name":"Romain","email":"romain145@gmail.com"},"added":[],"modified":["spa/plugins/v4l2/v4l2-utils.c"],"removed":[]}],"total_commits_count":1,"push_options":{},"repository":{"name":"pipewire","url":"git@ssh.gitlab.freedesktop.org:pipewire/pipewire.git","description":"Multimedia processing graphs","homepage":"https://gitlab.freedesktop.org/pipewire/pipewire","git_http_url":"https://gitlab.freedesktop.org/pipewire/pipewire.git","git_ssh_url":"git@ssh.gitlab.freedesktop.org:pipewire/pipewire.git","visibility_level":20}}