Re: [E-devel] E SVN: cedric trunk/emotion/src/modules/gstreamer

2011-10-23 Thread Vincent Torri


On Sun, 23 Oct 2011, Enlightenment SVN wrote:

> Log:
> emotion: correctly guard Ecore_X usage.
>
>
> Author:   cedric
> Date: 2011-10-23 02:21:14 -0700 (Sun, 23 Oct 2011)
> New Revision: 64322
> Trac: http://trac.enlightenment.org/e/changeset/64322
>
> Modified:
>  trunk/emotion/src/modules/gstreamer/emotion_sink.c
>
> Modified: trunk/emotion/src/modules/gstreamer/emotion_sink.c
> ===
> --- trunk/emotion/src/modules/gstreamer/emotion_sink.c2011-10-23 
> 08:46:23 UTC (rev 64321)
> +++ trunk/emotion/src/modules/gstreamer/emotion_sink.c2011-10-23 
> 09:21:14 UTC (rev 64322)
> @@ -1039,7 +1039,9 @@
> {
>Emotion_Gstreamer_Video *ev = data;
>
> +#ifdef HAVE_ECORE_X
>ecore_x_window_resize(ev->win, w, h);
> +#endif
>fprintf(stderr, "resize: %i, %i\n", w, h);
> }
>
> @@ -1048,11 +1050,13 @@
> Evas_Coord x, Evas_Coord y)
> {
>Emotion_Gstreamer_Video *ev = data;
> +#ifdef HAVE_ECORE_X
>unsigned int pos[2];
>
>fprintf(stderr, "move: %i, %i\n", x, y);
>pos[0] = x; pos[1] = y;
>ecore_x_window_prop_card32_set(ev->win, ECORE_X_ATOM_E_VIDEO_POSITION, 
> pos, 2);
> +#endif

move the printf outside the guard

Vincent

> }
>
> #if 0
> @@ -1095,7 +1099,9 @@
>Emotion_Gstreamer_Video *ev = data;
>
>fprintf(stderr, "show xv\n");
> +#ifdef HAVE_ECORE_X
>ecore_x_window_show(ev->win);
> +#endif
>/* gst_pad_set_blocked_async(ev->teepad, TRUE, _block_pad_link_cb, ev); */
> }
>
> @@ -1105,7 +,9 @@
>Emotion_Gstreamer_Video *ev = data;
>
>fprintf(stderr, "hide xv\n");
> +#ifdef HAVE_ECORE_X
>ecore_x_window_hide(ev->win);
> +#endif
>/* gst_pad_set_blocked_async(ev->teepad, TRUE, _block_pad_unlink_cb, ev); 
> */
> }
>
>
>
> --
> The demand for IT networking professionals continues to grow, and the
> demand for specialized networking skills is growing even more rapidly.
> Take a complimentary Learning@Cisco Self-Assessment and learn
> about Cisco certifications, training, and career opportunities.
> http://p.sf.net/sfu/cisco-dev2dev
> ___
> enlightenment-svn mailing list
> enlightenment-...@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/enlightenment-svn
>
>

--
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@Cisco Self-Assessment and learn 
about Cisco certifications, training, and career opportunities. 
http://p.sf.net/sfu/cisco-dev2dev
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] E SVN: cedric trunk/emotion/src/modules/gstreamer

2011-10-23 Thread Vincent Torri

now, you're making evas sink X-dependant... Do you know there are other OS 
over the world ?

manage _video_resize() and _video_move() and the code which use them 
correctly with guards

Vincent

On Sun, 23 Oct 2011, Enlightenment SVN wrote:

> Log:
> emotion: fix borderless and remove it from taskbar/pager at the same time.
>
>
> Author:   cedric
> Date: 2011-10-23 01:46:23 -0700 (Sun, 23 Oct 2011)
> New Revision: 64321
> Trac: http://trac.enlightenment.org/e/changeset/64321
>
> Modified:
>  trunk/emotion/src/modules/gstreamer/emotion_sink.c
>
> Modified: trunk/emotion/src/modules/gstreamer/emotion_sink.c
> ===
> --- trunk/emotion/src/modules/gstreamer/emotion_sink.c2011-10-23 
> 08:01:28 UTC (rev 64320)
> +++ trunk/emotion/src/modules/gstreamer/emotion_sink.c2011-10-23 
> 08:46:23 UTC (rev 64321)
> @@ -1201,7 +1201,9 @@
>  fprintf(stderr, "creating window: %x [%i, %i, %i, %i]\n", win, x, y, 
> w, h);
>  if (win)
>{
> -/* ecore_x_mwm_borderless_set(win, EINA_TRUE); */
> +Ecore_X_Window_State state[] = { 
> ECORE_X_WINDOW_STATE_SKIP_TASKBAR, ECORE_X_WINDOW_STATE_SKIP_PAGER };
> +
> +ecore_x_netwm_window_state_set(win, state, 2);
>  ecore_x_window_hide(win);
>  xvsink = gst_element_factory_make("xvimagesink", NULL);
>  if (xvsink)
>
>
> --
> The demand for IT networking professionals continues to grow, and the
> demand for specialized networking skills is growing even more rapidly.
> Take a complimentary Learning@Cisco Self-Assessment and learn
> about Cisco certifications, training, and career opportunities.
> http://p.sf.net/sfu/cisco-dev2dev
> ___
> enlightenment-svn mailing list
> enlightenment-...@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/enlightenment-svn
>
>

--
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@Cisco Self-Assessment and learn 
about Cisco certifications, training, and career opportunities. 
http://p.sf.net/sfu/cisco-dev2dev
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] E SVN: cedric trunk/emotion/src/modules/gstreamer

2011-08-01 Thread Sachiel
2011/8/1 Enlightenment SVN :
> Log:
> emotion: forgotten file.
>

You are doing this far too often lately. Since "breaking SVN" is
no longer of your exclusivity, maybe we can start saying
"hey, I pulled off a cedric last night" every time we forget to add a
new file to SVN.

>
> Author:       cedric
> Date:         2011-08-01 05:42:16 -0700 (Mon, 01 Aug 2011)
> New Revision: 61950
> Trac:         http://trac.enlightenment.org/e/changeset/61950
>
> Added:
>  trunk/emotion/src/modules/gstreamer/emotion_alloc.c
>
>
> --
> Got Input?   Slashdot Needs You.
> Take our quick survey online.  Come on, we don't ask for help often.
> Plus, you'll get a chance to win $100 to spend on ThinkGeek.
> http://p.sf.net/sfu/slashdot-survey
> ___
> enlightenment-svn mailing list
> enlightenment-...@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/enlightenment-svn
>

--
Got Input?   Slashdot Needs You.
Take our quick survey online.  Come on, we don't ask for help often.
Plus, you'll get a chance to win $100 to spend on ThinkGeek.
http://p.sf.net/sfu/slashdot-survey
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] E SVN: cedric trunk/emotion/src/modules/gstreamer

2011-06-24 Thread Vincent Torri


On Fri, 24 Jun 2011, Enlightenment SVN wrote:

> Log:
> emotion: fix shutdown of gstreamer plugin.
>
>
> Author:   cedric
> Date: 2011-06-24 07:52:59 -0700 (Fri, 24 Jun 2011)
> New Revision: 60666
> Trac: http://trac.enlightenment.org/e/changeset/60666
>
> Modified:
>  trunk/emotion/src/modules/gstreamer/emotion_gstreamer.c
>
> Modified: trunk/emotion/src/modules/gstreamer/emotion_gstreamer.c
> ===
> --- trunk/emotion/src/modules/gstreamer/emotion_gstreamer.c   2011-06-24 
> 14:11:24 UTC (rev 60665)
> +++ trunk/emotion/src/modules/gstreamer/emotion_gstreamer.c   2011-06-24 
> 14:52:59 UTC (rev 60666)
> @@ -353,13 +353,18 @@
>if (!ev)
>  return 0;
>
> +   if (ev->pipeline)
> + {
> +   gst_element_set_state(ev->pipeline, GST_STATE_NULL);
> +   gst_object_unref(ev->pipeline);
> +   ev->pipeline = NULL;
> + }

try to launch emotion_test with a wrong named file

Vincent

> +
>EINA_LIST_FREE(ev->audio_streams, astream)
>  free(astream);
>EINA_LIST_FREE(ev->video_streams, vstream)
>  free(vstream);
>
> -   gst_deinit();
> -
>free(ev);
>
>return 1;
> @@ -670,6 +675,12 @@
>if (!ev)
>  return;
>
> +   if (ev->eos_bus)
> + {
> +gst_object_unref(GST_OBJECT(ev->eos_bus));
> +ev->eos_bus = NULL;
> + }
> +
>/* we clear the stream lists */
>EINA_LIST_FREE(ev->audio_streams, astream)
>  free(astream);
> @@ -683,24 +694,11 @@
> ev->eos_timer = NULL;
>  }
>
> -   if (ev->eos_bus)
> - {
> -gst_object_unref(GST_OBJECT(ev->eos_bus));
> -ev->eos_bus = NULL;
> - }
> -
>if (ev->metadata)
>  {
> _free_metadata(ev->metadata);
> ev->metadata = NULL;
>  }
> -
> -   if (ev->pipeline)
> - {
> -gst_element_set_state(ev->pipeline, GST_STATE_NULL);
> -gst_object_unref(ev->pipeline);
> -ev->pipeline = NULL;
> - }
> }
>
> static void
> @@ -1415,6 +1413,8 @@
> gstreamer_module_shutdown(void)
> {
>_emotion_module_unregister("gstreamer");
> +
> +   gst_deinit();
> }
>
> #ifndef EMOTION_STATIC_BUILD_GSTREAMER
>
>
> --
> All the data continuously generated in your IT infrastructure contains a
> definitive record of customers, application performance, security
> threats, fraudulent activity and more. Splunk takes this data and makes
> sense of it. Business sense. IT sense. Common sense..
> http://p.sf.net/sfu/splunk-d2d-c1
> ___
> enlightenment-svn mailing list
> enlightenment-...@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/enlightenment-svn
>
>

--
All the data continuously generated in your IT infrastructure contains a 
definitive record of customers, application performance, security 
threats, fraudulent activity and more. Splunk takes this data and makes 
sense of it. Business sense. IT sense. Common sense.. 
http://p.sf.net/sfu/splunk-d2d-c1
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] E SVN: cedric trunk/emotion/src/modules/gstreamer

2011-06-23 Thread Vincent Torri


On Thu, 23 Jun 2011, Enlightenment SVN wrote:

> Log:
> emotion: forgottent strange Windows rules.
>
>
> Author:   cedric
> Date: 2011-06-23 08:33:34 -0700 (Thu, 23 Jun 2011)
> New Revision: 60638
> Trac: http://trac.enlightenment.org/e/changeset/60638
>
> Modified:
>  trunk/emotion/src/modules/gstreamer/emotion_gstreamer.c
>
> Modified: trunk/emotion/src/modules/gstreamer/emotion_gstreamer.c
> ===
> --- trunk/emotion/src/modules/gstreamer/emotion_gstreamer.c   2011-06-23 
> 14:58:11 UTC (rev 60637)
> +++ trunk/emotion/src/modules/gstreamer/emotion_gstreamer.c   2011-06-23 
> 15:33:34 UTC (rev 60638)
> @@ -385,7 +385,11 @@
> eina_strbuf_append(sbuf, "file://");
> if (strncmp(file, "./", 2) == 0)
>   file += 2;
> -if (*file != '/')
> + if (strstr(file, ":/") != NULL)

it's not sufficient :

the fist char is a letter between a and z (upper and lower case)
the second is :
the third is / or \

Vincent

> +   { /* We absolutly need file:///C:/ under Windows, so adding it here */
> + eina_strbuf_append(sbuf, "/");
> +   }
> + else if (*file != '/')
>   {
>  char tmp[PATH_MAX];
>
>
>
> --
> Simplify data backup and recovery for your virtual environment with vRanger.
> Installation's a snap, and flexible recovery options mean your data is safe,
> secure and there when you need it. Data protection magic?
> Nope - It's vRanger. Get your free trial download today.
> http://p.sf.net/sfu/quest-sfdev2dev
> ___
> enlightenment-svn mailing list
> enlightenment-...@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/enlightenment-svn
>
>

--
Simplify data backup and recovery for your virtual environment with vRanger.
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Data protection magic?
Nope - It's vRanger. Get your free trial download today.
http://p.sf.net/sfu/quest-sfdev2dev
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel


Re: [E-devel] E SVN: cedric trunk/emotion/src/modules/gstreamer

2011-06-16 Thread Vincent Torri


On Thu, 16 Jun 2011, Enlightenment SVN wrote:

> Log:
> emotion: temporary fix gstreamer uri to match other engine behaviour.
>
>
> Author:   cedric
> Date: 2011-06-16 08:29:29 -0700 (Thu, 16 Jun 2011)
> New Revision: 60398
> Trac: http://trac.enlightenment.org/e/changeset/60398
>
> Modified:
>  trunk/emotion/src/modules/gstreamer/emotion_gstreamer_pipeline.c
>
> Modified: trunk/emotion/src/modules/gstreamer/emotion_gstreamer_pipeline.c
> ===
> --- trunk/emotion/src/modules/gstreamer/emotion_gstreamer_pipeline.c  
> 2011-06-16 15:14:17 UTC (rev 60397)
> +++ trunk/emotion/src/modules/gstreamer/emotion_gstreamer_pipeline.c  
> 2011-06-16 15:29:29 UTC (rev 60398)
> @@ -1,3 +1,9 @@
> +#ifdef HAVE_CONFIG_H
> +# include "config.h"
> +#endif
> +
> +#define _GNU_SOURCE

it's not needed

Vincent

> +
> #include 
> #include 
>
> @@ -109,22 +115,27 @@
>  }
>g_object_set(G_OBJECT(ev->pipeline), "audio-sink", sink, NULL);
>
> -   if ((*file == '/') || (*file == '~'))
> +   if (strstr(file, "://") == NULL)
>  {
> -   char *uri;
> +   Eina_Strbuf *sbuf;
>
> -   uri = g_filename_to_uri(file, NULL, NULL);
> -   if (uri)
> - {
> -   DBG("Setting file %s\n", uri);
> -   g_object_set(G_OBJECT(ev->pipeline), "uri", uri, NULL);
> -   free(uri);
> - }
> -   else
> - {
> -   ERR("could not create new uri from %s", file);
> -   goto unref_pipeline;
> - }
> +   sbuf = eina_strbuf_new();
> +   eina_strbuf_append(sbuf, "file://");
> +   if (*file != '.' && *file != '/')
> +  {
> +char *tmp;
> +
> +tmp = get_current_dir_name();
> +eina_strbuf_append(sbuf, tmp);
> +eina_strbuf_append(sbuf, "/");
> +free(tmp);
> +  }
> +   eina_strbuf_append(sbuf, file);
> +
> +   DBG("Setting file %s\n", eina_strbuf_string_get(sbuf));
> +   g_object_set(G_OBJECT(ev->pipeline), "uri", 
> eina_strbuf_string_get(sbuf), NULL);
> +
> +   eina_strbuf_free(sbuf);
>  }
>else
>  {
>
>
> --
> EditLive Enterprise is the world's most technically advanced content
> authoring tool. Experience the power of Track Changes, Inline Image
> Editing and ensure content is compliant with Accessibility Checking.
> http://p.sf.net/sfu/ephox-dev2dev
> ___
> enlightenment-svn mailing list
> enlightenment-...@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/enlightenment-svn
>
>

--
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
___
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel