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 492406 - Crasher in libgstdshow on Windows/MSVC
Crasher in libgstdshow on Windows/MSVC
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-bad
0.10.5
Other All
: Normal normal
: 0.10.6
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2007-11-01 16:42 UTC by Ole André Vadla Ravnås
Modified: 2007-11-04 11:12 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Fix for the crasher caused by the base class constructor not necessarily being NULL-safe. (820 bytes, patch)
2007-11-01 17:28 UTC, Ole André Vadla Ravnås
committed Details | Review
Fix a couple of trivial warnings in dshowsrcwrapper while we're at it. (1.12 KB, patch)
2007-11-01 17:29 UTC, Ole André Vadla Ravnås
committed Details | Review

Description Ole André Vadla Ravnås 2007-11-01 16:42:52 UTC
Please describe the problem:
gst-plugins-bad doesn't build warning-free with Windows/MSVC (MSVS2005).

Steps to reproduce:


Actual results:


Expected results:


Does this happen every time?


Other information:
Comment 1 Ole André Vadla Ravnås 2007-11-01 17:26:53 UTC
Please disregard the original description, got confused by a context-switch at work. :)

gst-plugins-bad's libgstdshow has a crasher in the gstdshowfakesink's constructor when it calls the base class constructor with the HRESULT * argument being NULL. The base class implementation is some sample code in the Windows SDK, so presumably the original author (Sebastien) was using an older version of the SDK where the base class constructor was NULL-safe.
Comment 2 Ole André Vadla Ravnås 2007-11-01 17:28:27 UTC
Created attachment 98333 [details] [review]
Fix for the crasher caused by the base class constructor not necessarily being NULL-safe.
Comment 3 Ole André Vadla Ravnås 2007-11-01 17:29:57 UTC
Created attachment 98334 [details] [review]
Fix a couple of trivial warnings in dshowsrcwrapper while we're at it.
Comment 4 Tim-Philipp Müller 2007-11-04 11:12:33 UTC
Thanks, committed:

 2007-11-04  Tim-Philipp Müller  <tim at centricular dot net>

        Patch by: Ole André Vadla Ravnås  <ole.andre.ravnas@tandberg.com>

        * gst-libs/gst/dshow/gstdshowfakesink.cpp:
          (CDshowFakeSink.CDshowFakeSink):
        * gst-libs/gst/dshow/gstdshowfakesink.h: (CDshowFakeSink.m_hres):
          Fix crasher in constructor due to the base class's constructor
          not necessarily being NULL-safe (depends on the SDK version used
          apparently; #492406).

        * sys/dshowsrcwrapper/gstdshowaudiosrc.c: (gst_dshowaudiosrc_prepare):
        * sys/dshowsrcwrapper/gstdshowvideosrc.c: (gst_dshowvideosrc_set_caps):
          Fix a couple of MSVC compiler warnings (#492406).