Tim-Philipp Müller t.i.m at
Tue Jul 9 13:32:38 UTC 2019

On Tue, 2019-07-09 at 11:20 +0100, Russel Winder wrote:

> My current problem is though whether fields of type *gchar are
> actually nul terminate C strings or not. I believe they should be but
> CStr::from_ptr is failing to terminate indicating they are not. This
> would seem bad design of the parsing in the library if it is the
> case. I cannot believe the parsing algorithm would be bad, that nul
> terminated string would not be what is there.
> So I am in a circle of frustration. :-(
> Of course this is all based on test data rather than actual real
> packets, I guess I should just get some real packets from Freeview
> and see what the result is.

I'm a bit lost what exactly you're talking about here now, but if you
find a gchar * in our API that is always a 0-terminated string, unless
explicitly indicated otherwise. If it was not, it would be a gchar
foo[3] or somesuch.


More information about the gstreamer-devel mailing list