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 503733 - PATCH: stop gst-inspect --print-all from crashing when gst-ffmpeg is installed
PATCH: stop gst-inspect --print-all from crashing when gst-ffmpeg is installed
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-libav
0.10.3
Other Linux
: Normal normal
: 0.10.4
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2007-12-15 10:52 UTC by Hans de Goede
Modified: 2007-12-15 11:49 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Hans de Goede 2007-12-15 10:52:36 UTC
There is a small bug in gst-ffmpeg, which causes gst-inspect --print-all to crash when gst-ffmpeg is installed, this fixes this:
--- gst-ffmpeg-0.10.2/ext/ffmpeg/gstffmpegcfg.c~        2007-10-10 15:16:29.000
+++ gst-ffmpeg-0.10.2/ext/ffmpeg/gstffmpegcfg.c 2007-10-10 15:16:29.000000000 +
@@ -242,6 +242,7 @@ gst_ffmpeg_pred_method_get_type (void)
       {FF_PRED_LEFT, "Left", "left"},
       {FF_PRED_PLANE, "Plane", "plane"},
       {FF_PRED_MEDIAN, "Median", "median"},
+      { 0, NULL, NULL }
     };

     ffmpeg_pred_method =
Comment 1 Sebastian Dröge (slomo) 2007-12-15 11:49:40 UTC
Thanks, this is fixed in CVS (in the GST_FFMPEG_NO_MIRROR branch which will become HEAD soon) now.

2007-12-15  Sebastian Dröge  <slomo@circular-chaos.org>

        Based on a patch by:
            Hans de Goede <j dot w dot r degoede at hhs dot nl>

        * ext/ffmpeg/gstffmpegcfg.c: (gst_ffmpeg_pre_me_get_type),
          (gst_ffmpeg_pred_method_get_type):
          NULL-terminate the GEnumValue arrays, otherwise they will cause
          crashes. Fixes #503733.