Skip to content
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

Merged
merged 1 commit into from
Oct 29, 2021
Merged

Stop using GTimeVal/g_get_current_time #10043

merged 1 commit into from
Oct 29, 2021

Conversation

ItzSwirlz
Copy link
Contributor

@ItzSwirlz ItzSwirlz commented Apr 13, 2021

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.

@ItzSwirlz ItzSwirlz marked this pull request as draft April 13, 2021 15:55
@ItzSwirlz ItzSwirlz changed the title [WIP] Stop using GTimeVal/g_get_current_time [Next/Question] using GTimeVal/g_get_current_time Apr 30, 2021
@mtwebster
Copy link
Member

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.

@clefebvre clefebvre changed the title [Next/Question] using GTimeVal/g_get_current_time [Question] using GTimeVal/g_get_current_time May 13, 2021
@ItzSwirlz
Copy link
Contributor Author

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.

@ItzSwirlz ItzSwirlz changed the title [Question] using GTimeVal/g_get_current_time [Question/WIP] using GTimeVal/g_get_current_time May 13, 2021
Copy link
Contributor Author

@ItzSwirlz ItzSwirlz left a 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:

src/cinnamon-recorder.c Outdated Show resolved Hide resolved
src/cinnamon-recorder.c Show resolved Hide resolved
@mtwebster mtwebster changed the title [Question/WIP] using GTimeVal/g_get_current_time [wip][Question] using GTimeVal/g_get_current_time May 31, 2021
@ItzSwirlz
Copy link
Contributor Author

ItzSwirlz commented May 31, 2021

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.

@ItzSwirlz ItzSwirlz changed the title [wip][Question] using GTimeVal/g_get_current_time Stop using GTimeVal/g_get_current_time Jun 1, 2021
@ItzSwirlz
Copy link
Contributor Author

ItzSwirlz commented Jun 1, 2021

Finally done, tested and recorder works. Apparently it doesn't care if the function is a GstClockTime and it returns a gint64?

@ItzSwirlz ItzSwirlz marked this pull request as ready for review June 1, 2021 15:05
@ItzSwirlz ItzSwirlz marked this pull request as draft June 25, 2021 14:10
@ItzSwirlz ItzSwirlz changed the title Stop using GTimeVal/g_get_current_time [WIP] Stop using GTimeVal/g_get_current_time Jun 25, 2021
@ItzSwirlz ItzSwirlz marked this pull request as ready for review July 14, 2021 22:09
@ItzSwirlz ItzSwirlz changed the title [WIP] Stop using GTimeVal/g_get_current_time Stop using GTimeVal/g_get_current_time Jul 14, 2021
@ItzSwirlz
Copy link
Contributor Author

By the way, this is done (don't want to keep racking up the PRs sitting around). It looks like it can merge

@mtwebster mtwebster merged commit c3cda55 into linuxmint:master Oct 29, 2021
@mtwebster
Copy link
Member

You didn't test the hotplug-sniffer change. It segfaults immediately.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants