Commit Graph

151 Commits

Author SHA1 Message Date
Carsten Haitzler 5e925c916e patch from Gustavo F. Padovan - minor code cleanups (effectually cosmetic) :)
SVN revision: 39463
2009-03-13 10:42:04 +00:00
Lars Munch 0ae6187dee Emotion fix after eina list changes
Fix emotion after eina list changes in commit r39195

Signed-off-by: Lars Munch <lars@segv.dk>



SVN revision: 39284
2009-02-28 16:12:13 +00:00
Cedric BAIL e6065f6c1c * emotion/src/modules/gstreamer: Move from Ecore_List to Eina_List.
SVN revision: 39195
2009-02-25 10:44:13 +00:00
Gustavo Sverzut Barbieri 8477bdb496 gstreamer v4l support to emotion
This patch adds gstreamer v4l support to emotion. If you got a webcam it can
be tested by doing:

emotion_test -gstreamer v4l://

This will use the first video device /dev/video0.

If you do not have a webcam, you can also try it using the Virtual Video driver

By: Lars Munch <lars@segv.dk>


SVN revision: 39147
2009-02-22 17:16:47 +00:00
Gustavo Sverzut Barbieri 31a7c3c0d2 Do not spam the user if no length available
Do not spam the user if no length available from gstreamer. This is the case
for webcams, streaming audio and video etc.

By: Lars Munch <lars@segv.dk>


SVN revision: 39146
2009-02-22 17:15:23 +00:00
Gustavo Sverzut Barbieri 1fbacf6f28 Use calloc instead of malloc
Use calloc instead of malloc. This will ensure that length in set to zero if no
length is provided from gstreamer.

By: Lars Munch <lars@segv.dk>



SVN revision: 39145
2009-02-22 17:14:44 +00:00
Carsten Haitzler 297858d10c calloc not malloc! bad patches!
SVN revision: 38318
2008-12-25 08:35:51 +00:00
Vincent Torri d945c93a08 use ecore_pipe in gstreamer module
SVN revision: 38251
2008-12-20 16:31:55 +00:00
Gustavo Sverzut Barbieri 25c58aefef emotion: set default volume to 80%.
SVN revision: 37454
2008-11-04 11:48:19 +00:00
Cedric BAIL 66c2f07a28 Fix bug in emotion_test discovered by jcwong introduced in r36943.
SVN revision: 37373
2008-11-01 15:10:22 +00:00
Sebastian Dransfeld 65e204a52e xine_xmalloc is deprecated and gives no benefit for us.
SVN revision: 37218
2008-10-27 09:50:00 +00:00
Gustavo Sverzut Barbieri 510146a383 Set member_{add,del} to NULL.
SVN revision: 37088
2008-10-25 03:01:12 +00:00
Cedric BAIL 17626bb400 Remove Evas List from Emotion.
SVN revision: 36943
2008-10-21 16:35:41 +00:00
Carsten Haitzler c602dde40b vlc moduel was utterly wrong - methods wrong comapred to module struct funcs.
fixed. still broken. did this ever work? :)



SVN revision: 36825
2008-10-19 22:45:20 +00:00
Gustavo Sverzut Barbieri ea7104a545 emotion: set volume when files are opened.
SVN revision: 36531
2008-10-08 16:20:02 +00:00
Gustavo Sverzut Barbieri 0ebceb16a1 emotion: do not try to do file_set when no plugin is loaded.
SVN revision: 36530
2008-10-08 15:38:42 +00:00
Gustavo Sverzut Barbieri 030a0f6e52 emotion-gstreamer: use proper scale for volume.
Albeit gst-inspect returns a range from 0.0 to 10.0 for volume,
anything more than 1.0 will be distorted and sound horible.



SVN revision: 36485
2008-10-06 21:37:03 +00:00
Nicolas Aguirre aee5f5cec6 Add -vlc option to emotion_test
SVN revision: 36443
2008-10-05 13:14:55 +00:00
Vincent Torri 0829e2e3bc add vlc backend
SVN revision: 36280
2008-09-27 21:07:53 +00:00
Gustavo Sverzut Barbieri aa3aac7dbf Fix position reporting.
Always call pos_get() and also fix these on xine and gstreamer, we
should query the current position and do not trust cached value. For
instance, when no video is present, no handoff/frame-decoded is called
so no cache is updated.



SVN revision: 36271
2008-09-26 23:17:57 +00:00
Gustavo Sverzut Barbieri 521daa2f9d emotion-gstreamer: Add some refactor, more to come.
SVN revision: 36261
2008-09-26 00:02:43 +00:00
Gustavo Sverzut Barbieri d29b7694cb emotion+visualization: export and reorder.
done:
 * module api changed, vis_set is not close to vis_get, vis_supported
   was added.
 * exported these properties in emotion_object.
 * gstreamer plugin now starts with no visualization.

todo:
 * add xine support.
 * make gstreamer able to dynamically change visualization.


PS: gstreamer module really needs a cleanup, losts of functions need
"static" or add proper prefix, including "gst" to avoid it clash with
other symbols.




SVN revision: 36260
2008-09-25 23:15:21 +00:00
Sebastian Dransfeld feb962a48c Remove seek guard, as it isn't updated during playing.
SVN revision: 35918
2008-09-10 05:08:00 +00:00
Sebastian Dransfeld b85e619342 Revert to not having seek_to_pos at all.
SVN revision: 35917
2008-09-10 05:05:23 +00:00
Sebastian Dransfeld ca775d8d81 EAPI
SVN revision: 35916
2008-09-10 05:00:32 +00:00
Sebastian Dransfeld 6d35cd3c98 Keep guard against seeking to the same position, but initialize to -1.
SVN revision: 35913
2008-09-10 04:29:52 +00:00
Sebastian Dransfeld cabff8277f Initialize seek variables to -1, so that seek to 0 will work.
SVN revision: 35912
2008-09-10 04:24:38 +00:00
Vincent Torri 780b865044 fix position_set()
SVN revision: 35891
2008-09-09 08:49:29 +00:00
Gustavo Sverzut Barbieri 58a49c2f69 Add calculate callback to Evas_Smart_Class.
Some people is using it for some time now without problems, so I'm
adding it to SVN to get some broader use. Remember to recompile ALL
libraries that depend on Evas as it will change the
EVAS_SMART_CLASS_VERSION and old classes will fail to load.

This will also change Edje so it will postpone _edje_recalc() to
render time, calculate() callback, however some methods will force
early recalculation.



SVN revision: 35860
2008-09-07 01:25:49 +00:00
Sebastian Dransfeld 84553cfb4a formatting
SVN revision: 35012
2008-07-06 10:05:47 +00:00
Sebastian Dransfeld ec19c6f700 formatting
SVN revision: 35011
2008-07-06 09:52:21 +00:00
Sebastian Dransfeld 10bac60aa1 remove trailing whitespace
SVN revision: 35010
2008-07-06 09:39:08 +00:00
Sebastian Dransfeld a5b61e7746 Add vim header
SVN revision: 35009
2008-07-06 09:32:08 +00:00
Sebastian Dransfeld ac83d5a90b formatting
SVN revision: 35008
2008-07-06 09:31:29 +00:00
Nicolas Aguirre 0d3907acf3 Corrects retrieving metadata for gstreamer module
http://bugs.enlightenment.org/show_bug.cgi?id=504


SVN revision: 35001
2008-07-04 17:56:24 +00:00
Sebastian Dransfeld 2a28ea17b4 Remove unused variables.
SVN revision: 34868
2008-06-19 12:49:11 +00:00
Sebastian Dransfeld f05fe5a8da ignore
SVN revision: 34863
2008-06-19 12:29:22 +00:00
doursse 451451d3e9 remove debug message
SVN revision: 34582
2008-05-15 17:46:13 +00:00
doursse caea856117 * reorganize the way the gstreamer pipeline is built. Fix some usages
of emotion_object_file_set()
 * move the "frame_decode" evas event to _emotion_frame_new() a,d
   replace it in _emotion_video_pos_update() by "position_update"
 * fix a mem leak in the gstreamer backend and in the smart object


SVN revision: 34581
2008-05-15 16:52:04 +00:00
doursse ac834a2726 Don't set sd->video to NULL. sd->video is initialized only when
emotion_object_init() is called. Hence, setting sd->video to NULL
there implied that the code:

emotion_object_init(o, module);
emotion_object_file_set(o, file1);
emotion_object_file_set(o, NULL);
emotion_object_file_set(o, file2);

seg fault.

(such code is useful when you want to reset the same stream
(file1 = file2). The other solution would be to destroy everything
and recreating the pipeline, which is not nice)


SVN revision: 34571
2008-05-14 21:39:33 +00:00
doursse e65023bf1d Contrary to what gstremear's doc says, gst_deinit() does not clean what
gst_init() allocates. Hence, 2 calls of the couple gst_init() / gst_deinit()
fail miserabily. Gstreamer's dev says that the exported function gst_deinit()
should not be called, so let's remove it...


SVN revision: 34560
2008-05-13 20:50:34 +00:00
doursse c014ed5267 put xine and gstreamer modules in their own subdir
SVN revision: 34539
2008-05-11 18:52:29 +00:00
Carsten Haitzler 2ef004009b fix #ifdef
SVN revision: 34065
2008-03-20 21:13:55 +00:00
Gustavo Sverzut Barbieri 46f07234a0 Minor cleanups.
* bitfield must be unsigned;
 * static to most globals;
 * call shutdown on exit.


SVN revision: 33865
2008-02-28 20:35:16 +00:00
doursse 6c22f4068d Fix the play of 2 files. Patch by Nicolas Aguirre
SVN revision: 32576
2007-11-11 16:02:02 +00:00
doursse eb6534508d autostuff improvements:
* use non deprecated version of AC_INIT and AM_INIT_AUTOMAKE
   and check the required minimal versions.
 * add bzipped distribution archive
 * add AC_LIBTOOL_WIN32_DLL
 * forbid libtool to check fortran and c++ compilers
 * compute libtool versioning from the version of the package
 * pass the directories based on ${prefix} to the preoprocessor
   with the -D option
 * replace INCLUDES, wich is deprecated since 2001 by AM_CPPFLAGS
 * remove useless -L flags in *_la_LDFLAGS
 * remove Makefile.in on maintainer-clean rule


SVN revision: 32564
2007-11-11 09:12:08 +00:00
Peter Wehrfritz 4efe3eb21c following the api changes of ecore
SVN revision: 32411
2007-11-06 17:03:43 +00:00
Sebastian Dransfeld b8ee0529f9 Add type identifier.
SVN revision: 32400
2007-11-06 06:56:53 +00:00
doursse 48df189aa7 now you can play several files without segfault
SVN revision: 32299
2007-11-02 11:58:59 +00:00
doursse 4649e92bb8 * Use ecore_plugin instead of dlfcn
* the modules names are now "xine" and "gstreamer" (it's useless to add
   the extension, as ecore_plugin do not need it). I'll fix eclair,
   etk_extra and ewl.
 * look for the modules in path that is pointed by the env variable
    EMOTION_MODULES_DIR first.
 * fix a leak in the gstreamer module
 * remove some trailing spaces


SVN revision: 32261
2007-10-31 19:34:39 +00:00