#354: Segfault in C code for RGB frames..
------------------------+---------------------------------------------------
Reporter: toots | Owner: admin
Type: Bugs | Status: new
Priority: 1 | Milestone: 1.0 beta
Component: Liquidsoap | Version: 0.9.2+svn
Keywords: | Mac: 1
Linux: 1 | Netbsd: 1
Other: 1 | Freebsd: 1
------------------------+---------------------------------------------------
Comment(by smimram):
I don't see a particular problem with this code. The reason for the global
root is that if _src is not used in the following, it might be garbage
collected during the blocking section and thus src would not be valid
anymore (and the same for dst of course).
I think that a CAMLparam would have the same effect (the values are kept
alive until the next CAMLreturn) and since this is more standard coding
style it might be better to use it, but I don't see why it should change
anything (it might be worth trying though since those things are really
subtle).
--
Ticket URL: <http://savonet.rastageeks.org/ticket/354#comment:5>
Savonet <http://savonet.rastageeks.org/>
Let's program our stream !
------------------------------------------------------------------------------
_______________________________________________
Savonet-trac mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-trac