summaryrefslogtreecommitdiff
path: root/src/lib/emotion/emotion_webcam.c (unfollow)
AgeCommit message (Collapse)Author
2020-03-25emotion - webcam - fix segv on webcam plug/unplug and cleanCarsten Haitzler (Rasterman)
well hunting was fun... custom webcams i just cant see being used. no api to add them - have to hand craft a config file .. and udev/eeze provide info on webcam devices anyway at runtime with plug/unplug etc. ... so this should be the only ay (for now) and it keesp the code simpler and less bug-prone now issue was some nasty skipping unref as opposed to destroy. in chasing i simplified the code to help me narrow it down and not chase the same logic in multiple places. shorter cleaere, simpler and minux one bug. @fix
2019-08-22emotion - webcam fix deletion of webcam still left in webcam listCarsten Haitzler (Rasterman)
we may destroy webcams but leave them in the list. this fixes that by removing them from our global list when we do unref to 0. @fix
2017-12-19efl: Reset ecore event types on initJean-Philippe Andre
This fixes cycles of init/shutdown/init where ecore event types would become invalid, since they are now stored in a dynamic array rather than a statically stored array. The risk here is that if a module of EFL tends to init/shutdown in a "normal" scenario then the event type array will grow in a leaking manner. This could be fixed by resetting those event ID's only when the loop actually exits (EFL_EVENT_DEL on the main loop). I'm not using EFL_EVENT_DEL in this patch as this would add too many event callbacks to the main loop object, which may result in slightly slower event calls to it, affecting the overall performance.
2017-03-09emotion: avoid crash during shutdown due to Ecore_Event queue.Cedric BAIL
2015-11-13emotion webcam: fix check for v4l2 video capture device capabilityStefan Schmidt
The negation should be uses after checking the capability bit with the &. Better use parenthesis to make this work. Thankls to the sparse sematic parser for spotting this.
2014-05-30Fix unused var warning in emotion.Guillaume Friloux
2013-12-16emotion: fix Windows compilation.Cedric BAIL
2013-12-15emotion - webcam - don't access after free and ensure it is not in listCarsten Haitzler (Rasterman)
this should fix CID 1137853 and CID 1137854
2013-12-13fix fd leak in emotion webcam where fd of value 0 never closedCarsten Haitzler (Rasterman)
fixes CID 1039175
2013-12-13emotion: make webcam initialization lazy and non blocking.Cedric BAIL
This should fix T648.
2013-12-13emotion: fix potential memory leak when webcam register fail.Cedric BAIL
2013-12-13emotion: lower warning on webcam access error to information (Not critical ↵Cedric BAIL
anyway).
2013-10-09emotion: add two events to trigger when a webcam is plugged or unpluggedMichaël Bouchaud (yoz)
2013-09-12emotion: Avoid leak by also checking for fd being null.Stefan Schmidt
If fd would be null here we would leak the fd handle. Fix the check. CID: 1039175
2013-07-09Fix compiler warningsChris Michael
- include unistd.h for close function. - initialize fd to -1 so we can check error condition. Signed-off-by: Chris Michael <devilhorns@comcast.net>
2013-07-09Don't leak fd handles (ie: leave files open) when checking devicesChris Michael
NB: Fixes Coverity CID1039175 Signed-off-by: Chris Michael <cp.michael@samsung.com>
2013-06-20efl: formattingSebastian Dransfeld
2013-01-11fix segv in emotion_webcam_init and leak in emotion_webcam_config_loadJérémy Zurcher
SVN revision: 82650
2013-01-10efl/emotion: move webcam stuff out of main file.Gustavo Sverzut Barbieri
SVN revision: 82591