GNOME Bugzilla – Bug 171400
mmapsize property on gstfilesrc borked.
Last modified: 2005-03-23 22:13:06 UTC
Hmmm, just started looking through the source to start hacking my very own gstreamer element, and I found this broken logic in the first source file I opened, call it beginners luck ;-) I'm sure that this: ===================== if ((src->mapsize % src->pagesize) == 0) { src->mapsize = g_value_get_ulong (value); } else { ... } ===================== Was meant to test that the *new* mapsize be a multiple of pagesize; not to only allow changing the mmap size if the current mmap size is valid. patch comming...
Created attachment 39147 [details] [review] Patch to fix broken mmap property. This patch fixes the broken logic for mmap size set property, also it removes the useless calls to g_object_notify () in the set_property function (g_object_notify() is only needed when the property changes without passing through the g_object_set() code path). Also the error reporting macro is enhanced to print the mmap size which was incompatible (instead of just the page size).
Thanks for noticing. We don't use that property too often as you can see... :).