Fix macro GST_FOURCC_ARGS - it assumed big endian ints
authorBenjamin Otte <otte@gnome.org>
Tue, 13 May 2003 23:15:46 +0000 (23:15 +0000)
committerBenjamin Otte <otte@gnome.org>
Tue, 13 May 2003 23:15:46 +0000 (23:15 +0000)
Original commit message from CVS:
Fix macro GST_FOURCC_ARGS - it assumed big endian ints

gst/gstprops.h

index e041961..bf213b5 100644 (file)
@@ -63,10 +63,10 @@ typedef enum {
 
 #define GST_FOURCC_FORMAT "%c%c%c%c"
 #define GST_FOURCC_ARGS(fourcc) \
-       ((GUINT32_FROM_LE(fourcc)>>24)&0xff), \
-       ((GUINT32_FROM_LE(fourcc)>>16)&0xff), \
-       ((GUINT32_FROM_LE(fourcc)>>8)&0xff), \
-       (GUINT32_FROM_LE(fourcc)&0xff)
+       ((gchar) ((fourcc)     &0xff)), \
+       ((gchar) (((fourcc)>>8 )&0xff)), \
+       ((gchar) (((fourcc)>>16)&0xff)), \
+       ((gchar) (((fourcc)>>24)&0xff))
 
 #ifdef G_HAVE_ISO_VARARGS
 #  define GST_PROPS_LIST(...)      GST_PROPS_LIST_TYPE,__VA_ARGS__,NULL