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 502204 - [0.11] rtpmanager uses %d to printf unsigned ssrc/pt
[0.11] rtpmanager uses %d to printf unsigned ssrc/pt
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-bad
git master
Other Linux
: Normal enhancement
: 0.11.x
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2007-12-06 21:31 UTC by Olivier Crête
Modified: 2011-11-28 13:28 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch to replace %d with %u (16.15 KB, patch)
2007-12-06 21:32 UTC, Olivier Crête
none Details | Review
Fixed patch, the first one was a tiny bit too aggressive (16.04 KB, patch)
2007-12-06 23:20 UTC, Olivier Crête
reviewed Details | Review

Description Olivier Crête 2007-12-06 21:31:23 UTC
I'm attaching a patch against CVS rtpmanager to replace the %d with %u on unsigned values (other I get pads named src_-32313213 ... )
Comment 1 Olivier Crête 2007-12-06 21:32:01 UTC
Created attachment 100472 [details] [review]
patch to replace %d with %u
Comment 2 Olivier Crête 2007-12-06 23:20:34 UTC
Created attachment 100483 [details] [review]
Fixed patch, the first one was a tiny bit too aggressive
Comment 3 Wim Taymans 2007-12-10 13:08:15 UTC
The thing is that we assume that the padname is generated from the padtemplate name, which in turn only allows for %d signs. It's probably not going to cause many problems but I need to check it out in more detail.
Comment 4 Olivier Crête 2007-12-10 16:20:10 UTC
Afaik, this is just cosmetic.. If we go for %d, then I'll have farsight do that too, although it looks a bit strange, maybe using %u everywhere may be more logical (but thats probably 0.12 material).
Comment 5 Wim Taymans 2007-12-10 16:37:43 UTC
It's not a big deal, we could add %u to the accepted padtemplate strings and then everything is fine and neat. Currently, if you receive a new-pad from a padtemplate, you are supposed to be able to parse the padname with the template name and scanf(), scanning an unsigned int with %d probably works but it's not very nice.
Comment 6 Sebastian Dröge (slomo) 2009-05-07 11:09:04 UTC
%u is added to the accepted padtemplate strings now btw... anything else that needs to be done here?
Comment 7 Olivier Crête 2009-05-07 13:37:09 UTC
Actually, it should probably be fixed in the debugs, but changing the pad names would break the API and that would be a bit annoying.
Comment 8 Sebastian Dröge (slomo) 2009-09-10 08:24:21 UTC
Right, let's just fix this for 0.11 then.
Comment 9 Tim-Philipp Müller 2009-10-31 12:50:17 UTC
0.11 -> marking as enhancement