-
Notifications
You must be signed in to change notification settings - Fork 746
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Stop using GTimeVal/g_get_current_time #10043
Conversation
Why are you removing cinnamon_util_format_date - how is it related to the rest of the pr?? That's needed by a workaround we have in environment.js. |
Didn't know that. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a few things to look at:
i can't do crap i just rewrote the function using GstDateTime and other stuff the compiler recommended and of course the g_get_real_time cast still makes me want to cry Anyways, test time.. and it still protection faults. dangit. |
Finally done, tested and recorder works. Apparently it doesn't care if the function is a GstClockTime and it returns a gint64? |
It is Y-2038 unsafe. References: https://developer.gnome.org/glib/stable/glib-Date-and-Time-Functions.html GNOME/gnome-shell@9b7f228 GNOME/gnome-shell@a030c54#diff-3b88f09b111c3c589502e6cdf5bc3be7f1d2fc632e2180542ea570ef6cb67078 Some of GstClock was used: https://developer.gnome.org/gstreamer/stable/GstClock.html
By the way, this is done (don't want to keep racking up the PRs sitting around). It looks like it can merge |
You didn't test the hotplug-sniffer change. It segfaults immediately. |
I decided to push through with the cinnamon recorder manually myself. GNOME uses a GDBus friendlier JS recorder which I don't know what everyone's thoughts are since some may prefer JS over C and being closer upstream with GNOME. Anyways, here it is.