Apply badzero.cocci, badnull.coci and badnull2.cocci
This should convert all cases where there's a comparison to NULL to simpler
forms. This patch applies the following transformations:
code before patch ||code after patch
===============================================================
return a == NULL; return !a;
return a != NULL; return !!a;
func(a == NULL); func(!a);
func(a != NULL); func(!!a);
b = a == NULL; b = !a;
b = a != NULL; b = !!a;
b = a == NULL ? c : d; b = !a ? c : d;
b = a != NULL ? c : d; b = a ? c : d;
other cases:
a == NULL !a
a != NULL a
SVN revision: 51487
* those write to stderr were legacy from development, some of them
were even wrongly accessing out-of-buffer memory;
* some platforms cannot access non-aligned memory, like integers that
are not aligned to sizeof(int) and do on. Change the generated
message using memcpy to aligned memory before using them. Add
comment to explain that;
SVN revision: 50135
parameter but an int32 is sent instead.
Patch by: João Paulo Rechi Vita <jprvita@profusion.mobi>
--This lina, and those below, will be ignored--
M ethumb/src/bin/ethumbd.c
SVN revision: 43160
Have all source to include config.h conditionally (HAVE_CONFIG_H),
define EINA_LOG_LEVEL_MAXIMUM, minor changes to configure.ac to make
it conform with the rest of efl.
SVN revision: 42544
* Callbacks were named to help Vala bindings.
* All callbacks get 'void *data' as first argument, always.
* All async methods get free_data parameters and call them also on disconnect()
* queue_remove() renamed to generate_cancel() to be more clear.
* queue_clear() renamed tp generate_cancel_call() to be more clear.
SVN revision: 42445
remove debug_level options as it is better handled by EINA_LOG_LEVELS
and EINA_LOG_LEVEL variables, for example:
EINA_LOG_LEVEL=3 EINA_LOG_LEVELS=ethumb:4,ethumb_client=1
will show debug for ethumb (lib), just errors (no warnings) for
ethumb_client library and everything else shows "info".
SVN revision: 42261
-Q, -V, -D: change debug levels, always forget about EINA_ERROR_LEVEL :-P
print message with status, if it failed, was generated or already exists.
SVN revision: 41374
These thumbnails are generated using an edje template. Each thumbnail is
an edje file, that has a group called "movie/thumb"
The thumbnail can be animated by receiving a signal "animate" or "animate_loop"
(the last one being a loop animation that calls itself when finished), and
the animate_loop program can be stopped by receiving a signal "animate_stop".
The transition time is set based on the time of the animation (that is set
by the call ethumb_video_time_set()).
SVN revision: 41322
ethumbd is a server waiting for requests of thumbnails via dbus. A client
library is also provided, avoiding dbus burocracy (and with an API similar
to ethumb).
SVN revision: 40899
The ethumb_generate() function now just returns 0 if there is already a
generation in progress (and in that case, the callback isn't called).
SVN revision: 40738
New library to generate thumbnails.
There are still some important features to be implemented, like
client-server framework, edje thumbnails and a plugin API to integrate
it with emotion and like.
Please, send comments.
SVN revision: 39805