]> git.sesse.net Git - vlc/commitdiff
core: fix regression
authorErwan Tulou <erwan10@videolan.org>
Mon, 1 Feb 2010 14:08:04 +0000 (15:08 +0100)
committerErwan Tulou <erwan10@videolan.org>
Mon, 1 Feb 2010 14:18:43 +0000 (15:18 +0100)
Fix regression brought by ce67728ae1a0d91643e416b86efeab34a0891e35
As stated in the 'BIG FAT WARNING', decoder_t and filter_t first members must
be the same ones.

This solves skins2 numerous images failing to be displayed due to swscale
 video filter no longer working properly (a filter_t to decoder_t cast issue)

include/vlc_codec.h

index 9ddd6bc94d382d774231dabb286229be5d4acd6d..3d21b07b985b4aab9903354f4af3575227a9b1b7 100644 (file)
@@ -56,7 +56,6 @@ struct decoder_t
     /* Module properties */
     module_t *          p_module;
     decoder_sys_t *     p_sys;
-    bool                b_error;
 
     /* Input format ie from demuxer (XXX: a lot of field could be invalid) */
     es_format_t         fmt_in;
@@ -127,6 +126,8 @@ struct decoder_t
 
     /* Private structure for the owner of the decoder */
     decoder_owner_sys_t *p_owner;
+
+    bool                b_error;
 };
 
 /**