GNOME Bugzilla – Bug 420326
Base payloader class has wrong property types and ranges
Last modified: 2007-07-14 17:23:55 UTC
* Timestamp offset is an int with a max of G_MAXINT32, it should be a gint64 with a max of G_MAXUINT32 (because it can be set to -1). * Seqnum offset is an int16 with a max of G_MAXINT, it should be a gint32 with a max of G_UINT16 (because it can be set to -1). * Seqnum has a max of G_MAXINT, it should be G_MAXUINT16. patch attached
Created attachment 84921 [details] [review] Fix types and ranges of some properties
this will break ABI. You can probably do something with extra gbooleans at the end of the struct to mark the fields as 'unset'.
* gst-libs/gst/rtp/gstbasertppayload.c: (gst_basertppayload_class_init), (gst_basertppayload_init), (gst_basertppayload_event), (gst_basertppayload_push), (gst_basertppayload_set_property), (gst_basertppayload_get_property), (gst_basertppayload_change_state): * gst-libs/gst/rtp/gstbasertppayload.h: Fix ranges of rtp payloader properties so that the full range can be used in addition to -1 (random). Fix wrong seqnum reporting in caps. Fixes #420326.