After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 725489 - Set clip number using GST_TAG_TRACK_NUMBER
Set clip number using GST_TAG_TRACK_NUMBER
Status: RESOLVED OBSOLETE
Product: gnome-sound-recorder
Classification: Other
Component: General
3.11.x
Other Linux
: Normal normal
: ---
Assigned To: gnome-sound-recorder maintainer(s)
gnome-sound-recorder maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2014-03-02 07:52 UTC by Meg Ford
Modified: 2018-05-22 12:54 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Random test with unsigned integers in JS (221 bytes, application/javascript)
2016-05-31 23:48 UTC, Miguel Vaello Martínez
Details

Description Meg Ford 2014-03-02 07:52:46 UTC
We are setting the tag using Gst.TAG_TITLE as a work-around for the lack of guints in Javascript. Number.getInteger(1) returns a gint, even if it is converted using >>>0. Regular numbers are passed as doubles.
Comment 1 Miguel Vaello Martínez 2016-05-31 23:48:10 UTC
Created attachment 328852 [details]
Random test with unsigned integers in JS
Comment 2 Miguel Vaello Martínez 2016-05-31 23:48:42 UTC
Looks like it was solved in recent GJS versions. Test the attached test written in bare JavaScript:

$ [gjs] ./toUnsignedInt.js

Results:

Gjs-Message: JS LOG: 4294967295 
Gjs-Message: JS LOG: 0
Gjs-Message: JS LOG: 1
Gjs-Message: JS LOG: 1000000000
Gjs-Message: JS LOG: number


But, on the other hand, have sense enumerate tracks if the user deletes some tracks?
Comment 3 Meg Ford 2016-06-02 03:29:13 UTC
Honestly this bug should be closed since I ended up looking for the last track number and adding one to it. When I opened this I thought it would be better to use the tag setter instead of parsing the name, but Nautilus does it that way so I guess it's fine :)

I'm glad they added this to GJS, though! I'll test the tagsetter and see if it works there, then close this. Thanks for the heads-up!
Comment 4 GNOME Infrastructure Team 2018-05-22 12:54:54 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gnome-sound-recorder/issues/11.