[gstreamer-bugs] [Bug 636241] Align XOverlay handling not to use deprecated methods

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Wed Dec 1 11:14:07 PST 2010


https://bugzilla.gnome.org/show_bug.cgi?id=636241
  GStreamer | qt-gstreamer | 0.10.31

George Kiagiadakis <kiagiadakis.george> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #175647|none                        |needs-work
             status|                            |

--- Comment #1 from George Kiagiadakis <kiagiadakis.george at gmail.com> 2010-12-01 19:14:04 UTC ---
Review of attachment 175647:
 --> (https://bugzilla.gnome.org/review?bug=636241&attachment=175647)

In xoverlay.h:
I'd prefer not to include <QtGui/QWidget>, but <QtGui/qwindowdefs.h> to keep
the QtGui intrusion as minimal as possible. Note that this class is in the main
QtGStreamer library which does not depend on QtGui (although we may want to
reconsider that...)

In xoverlay.cpp:
The cast is plain wrong. The C method takes a gpointer, which means that:
On X11 (where WId is ulong), it should be reinterpret_cast<gpointer>'ed
On Mac (where WId is int or long), it should be reinterpret_cast<gpointer>'ed
again.
On Windows (where WId is HWND, which in turn is a void*), it should be passed
without a cast (or maybe static_cast<HWND> for safety?)

Btw, I'm not really sure if on X11 and mac you are supposed to cast the
gpointer to ulong/long/int or pass a pointer to it.

In videowidget.cpp:
The #ifdef should be removed and the WId should be passed as is, without a
cast.

-- 
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.




More information about the Gstreamer-bugs mailing list