GNOME Bugzilla – Bug 558896
DVD playing on Vista using dvddemux element seg-faults on spu packet
Last modified: 2008-11-04 12:21:36 UTC
Steps to reproduce: 1. The following is a minimal pipeline which will reproduce this bug with almost any DVD containing spu streams (tested with Harry Potter, Lord of The Rings and many more) tanaka@Vista> GST_DEBUG=dvdreadsrc:4,dvddemux:5 ./gst-launch-0.10.exe -v --gst-plugin-path=../lib/gstreamer-0.10 dvdreadsrc device=d:/ ! dvddemux name=demux .current_video ! fakesink silent=true 2. The pipeline crash with memory allocation error immediately after the debug output prints 'we have a subpicture packet,..' I was only able to reproduce this bug under windows Vista Stack trace: Other information: This due to an omission in gstdvddemux.c to reset a pointer after calling g_renew. Please see attached patch fixing this problem.
Created attachment 121807 [details] [review] patch against HEAD fixing gst/mpegstream/gstdvddemux.c, gst/mpegstream/gstmpegdemux.c
Thanks! Patch by: Tal Shalif <tshalif at nargila dot org> * gst/mpegstream/gstdvddemux.c: (gst_dvd_demux_get_subpicture_stream): * gst/mpegstream/gstmpegdemux.c: (gst_mpeg_demux_get_video_stream), (gst_mpeg_demux_get_audio_stream): Fix memmory corruption due to not storing the new updated pointer after a g_renew(). Fixes #558896.
*** Bug 506125 has been marked as a duplicate of this bug. ***