GNOME Bugzilla – Bug 343951
patch for win32+vs6
Last modified: 2006-09-06 15:15:06 UTC
Hi all, I've built gst-ffmpeg with vs6 after some changes ... Here is a patch for it. I had to replace pix_fmt_info array initialization by a more standard way of tables init using a function. I've also write a clean function to free strings allocated by g_strdup by i don't really where to call it ... Cheers, Sebastien
Created attachment 66794 [details] [review] patch for gst-ffmpeg+vs6
Looks mostly good to me. The only thing I'm not entirely sure about is the pix_fmt_info[] array change - can we keep this in sync with the stuff in ~/gst-plugins-base/gst/ffmpegcolorspace/ or is there a reason why this is not possible?
Patch by: Sebastien Moutte <sebastien at moutte dot net> * ext/ffmpeg/gstffmpeg.c: (plugin_init): * ext/ffmpeg/gstffmpegcodecmap.c: (gst_ff_vid_caps_new), (gst_ff_aud_caps_new), (gst_ffmpeg_codecid_to_caps), (gst_ffmpeg_pixfmt_to_caps), (gst_ffmpeg_smpfmt_to_caps), (gst_ffmpeg_init_pix_fmt_info): * ext/ffmpeg/gstffmpegcodecmap.h: * ext/ffmpeg/gstffmpegdemux.c: (gst_ffmpegdemux_send_event): * ext/ffmpeg/gstffmpegprotocol.c: Make stuff compile on Visual Studio 6. Convert some crach macros to functions. Convert some static tables to _init functions. Fixes #343951.