After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 591591 - Gloverlay makes it hard to manipulate the position of the image
Gloverlay makes it hard to manipulate the position of the image
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-gl
git master
Other All
: Normal minor
: 0.10.2
Assigned To: Filippo Argiolas
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2009-08-12 18:07 UTC by anthony
Modified: 2009-09-02 09:17 UTC
See Also:
GNOME target: ---
GNOME version: 2.23/2.24


Attachments
patch of gloverlay (8.12 KB, patch)
2009-08-12 18:08 UTC, anthony
needs-work Details | Review
Patch for the last version of gst-gloverlay (4.57 KB, patch)
2009-08-13 17:20 UTC, anthony
none Details | Review
Patch for the last version of gst-gloverlay functionnal (3.70 KB, patch)
2009-09-01 14:38 UTC, anthony
none Details | Review
Patch for gst-plgins-gl 0.10.1.1 (17.47 KB, patch)
2009-09-02 07:42 UTC, anthony
committed Details | Review

Description anthony 2009-08-12 18:07:24 UTC
Adding features such as controlling the size and position of the image would ease it's use.

Other information:
Comment 1 anthony 2009-08-12 18:08:42 UTC
Created attachment 140570 [details] [review]
patch of gloverlay
Comment 2 Filippo Argiolas 2009-08-13 11:04:02 UTC
Yep it could be good enhancement and I planned to do it sooner or later.
I'm having a hard time reviewing your patch since it doesn't apply to current tree and it's in a pretty uncommon format (I cannot even figure out which lines are added and which removed...).

Could you update it to apply to the current git tree and provide it in a decent format (git format-patch would be the best, git diff and diff -u almost as good)?
Thank you!
Comment 3 anthony 2009-08-13 17:20:02 UTC
Created attachment 140681 [details] [review]
Patch for the last version of gst-gloverlay
Comment 4 anthony 2009-08-13 17:25:08 UTC
(In reply to comment #3)
> Created an attachment (id=140681) [edit]
> Patch for the last version of gst-gloverlay
> 
I have added the new patch for gstgloverlay.
Comment 5 Julien Isorce 2009-09-01 10:03:56 UTC
I tried to apply the patch in the following way:

git apply 0001-Added-New-version-Gstgloverlay.patch

gst/gl/0001-Added-New-version-Gstgloverlay.patch:34: trailing whitespace.                             
      "X position of overlay image in percents",                                                      
gst/gl/0001-Added-New-version-Gstgloverlay.patch:41: trailing whitespace.                             
      "Y position of overlay image in percents",                                                      
gst/gl/0001-Added-New-version-Gstgloverlay.patch:47: trailing whitespace.                             
      "Relative size of iverlay image, in percents",                                                  
gst/gl/0001-Added-New-version-Gstgloverlay.patch:57: trailing whitespace.                             

gst/gl/0001-Added-New-version-Gstgloverlay.patch:73: trailing whitespace.

warning: 5 lines add whitespace errors.

The git diff print no diff

I also tried:
git apply --whitespace=nowarn 0001-Added-New-version-Gstgloverlay.patch

any idea ?
Comment 6 anthony 2009-09-01 14:38:45 UTC
Created attachment 142250 [details] [review]
Patch for the last version of gst-gloverlay functionnal

Now the patch should work with the last version of gst-plugins-gl
Comment 7 Julien Isorce 2009-09-01 15:23:50 UTC
Hi, no yet :P

git apply -v gstgloverlay.patch
Checking patch gst/gl/gstgloverlay.c...
error: while searching for:

  gchar *location;
  gboolean pbuf_has_changed;

  guchar *pixbuf;
  gint width, height;
  GLuint pbuftexture;

error: patch failed: gst/gl/gstgloverlay.c:54
error: gst/gl/gstgloverlay.c: patch does not apply

At this time there is no "gchar *location;" in
http://cgit.freedesktop.org/gstreamer/gst-plugins-gl/tree/gst/gl/gstgloverlay.c

because it has been moved to gstgloverlay.h added since:
http://cgit.freedesktop.org/gstreamer/gst-plugins-gl/commit/?id=d8826559d638cbad1ad5984a988823ec120061a7
Comment 8 anthony 2009-09-02 07:42:49 UTC
Created attachment 142302 [details] [review]
Patch for gst-plgins-gl 0.10.1.1

Now the patch should work with the version 0.10.1.1 of gst-plugins-gl. The patch must be in source of the plugin.
Comment 9 Julien Isorce 2009-09-02 08:07:38 UTC
commit 8cf6ca13fa3a458afb300a2eeab21dc09b1cf07d
Author: Anthony Violo <anthony.violo@ubicast.eu>
Date:   Wed Sep 2 10:06:36 2009 +0200

    gloverlay: can control image size and position

    Fix bug #591591
Comment 10 Filippo Argiolas 2009-09-02 09:15:16 UTC
Sorry for neglecting this patch review. It's summer, you know, beach, sun, no laptop... :P
Thanks Julien for taking care of this, and thank you again Anthony for the patches.