GNOME Bugzilla – Bug 451249
Integer type mismatch in gstrtspsrc.c
Last modified: 2007-06-27 11:36:45 UTC
When setting rtspsrc caps the field "clock-base" has type G_TYPE_UINT, but in fact the value is guint64.
Created attachment 90664 [details] [review] gstrtspsrc.c.patch
Hmm... you're right but changing this would break ABI I guess :/
The real valid range for clock-base is 32 bits unsigned, we declared it as uint64 internally to be able to mark an uninitialised value with -1. following patch explicitly casts the value on the stack as to not cause runtime problems due to different sizes. * gst/rtsp/gstrtspsrc.c: (gst_rtspsrc_configure_caps): Cast stack args to the proper types. Fixes #451249.