From: Tal Shalif Date: Sun, 23 Nov 2008 11:14:42 +0000 (+0000) Subject: gst/qtdemux/qtdemux.c: Use G_{BIG,LITTLE}_ENDIAN instead of the non-GLib variants... X-Git-Tag: GIT_CONVERSION~80 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7b60afd805ce2da85510094f6aa4735696b4001b;p=platform%2Fupstream%2Fgst-plugins-good.git gst/qtdemux/qtdemux.c: Use G_{BIG,LITTLE}_ENDIAN instead of the non-GLib variants as the latter don't exist on some s... Original commit message from CVS: Patch by: Tal Shalif * gst/qtdemux/qtdemux.c: (qtdemux_audio_caps): Use G_{BIG,LITTLE}_ENDIAN instead of the non-GLib variants as the latter don't exist on some systems (mingw). Fixes bug #561992. --- diff --git a/ChangeLog b/ChangeLog index d2a66f3..7f04bd5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2008-11-23 Sebastian Dröge + + Patch by: Tal Shalif + + * gst/qtdemux/qtdemux.c: (qtdemux_audio_caps): + Use G_{BIG,LITTLE}_ENDIAN instead of the non-GLib variants as + the latter don't exist on some systems (mingw). Fixes bug #561992. + 2008-11-21 Sebastian Dröge Patch by: Zeeshan Ali diff --git a/gst/qtdemux/qtdemux.c b/gst/qtdemux/qtdemux.c index 0876dc6..40a3cfc 100644 --- a/gst/qtdemux/qtdemux.c +++ b/gst/qtdemux/qtdemux.c @@ -4866,7 +4866,7 @@ qtdemux_audio_caps (GstQTDemux * qtdemux, QtDemuxStream * stream, "depth", G_TYPE_INT, 8, "signed", G_TYPE_BOOLEAN, FALSE, NULL); break; case GST_MAKE_FOURCC ('t', 'w', 'o', 's'): - endian = BIG_ENDIAN; + endian = G_BIG_ENDIAN; /* fall-through */ case GST_MAKE_FOURCC ('s', 'o', 'w', 't'): { @@ -4874,7 +4874,7 @@ qtdemux_audio_caps (GstQTDemux * qtdemux, QtDemuxStream * stream, gint depth; if (!endian) - endian = LITTLE_ENDIAN; + endian = G_LITTLE_ENDIAN; depth = stream->bytes_per_packet * 8; str = g_strdup_printf ("Raw %d-bit PCM audio", depth); @@ -4889,25 +4889,25 @@ qtdemux_audio_caps (GstQTDemux * qtdemux, QtDemuxStream * stream, case GST_MAKE_FOURCC ('f', 'l', '6', '4'): _codec ("Raw 64-bit floating-point audio"); caps = gst_caps_new_simple ("audio/x-raw-float", "width", G_TYPE_INT, 64, - "endianness", G_TYPE_INT, BIG_ENDIAN, NULL); + "endianness", G_TYPE_INT, G_BIG_ENDIAN, NULL); break; case GST_MAKE_FOURCC ('f', 'l', '3', '2'): _codec ("Raw 32-bit floating-point audio"); caps = gst_caps_new_simple ("audio/x-raw-float", "width", G_TYPE_INT, 32, - "endianness", G_TYPE_INT, BIG_ENDIAN, NULL); + "endianness", G_TYPE_INT, G_BIG_ENDIAN, NULL); break; case GST_MAKE_FOURCC ('i', 'n', '2', '4'): _codec ("Raw 24-bit PCM audio"); caps = gst_caps_new_simple ("audio/x-raw-int", "width", G_TYPE_INT, 24, "depth", G_TYPE_INT, 24, - "endianness", G_TYPE_INT, BIG_ENDIAN, + "endianness", G_TYPE_INT, G_BIG_ENDIAN, "signed", G_TYPE_BOOLEAN, TRUE, NULL); break; case GST_MAKE_FOURCC ('i', 'n', '3', '2'): _codec ("Raw 32-bit PCM audio"); caps = gst_caps_new_simple ("audio/x-raw-int", "width", G_TYPE_INT, 32, "depth", G_TYPE_INT, 32, - "endianness", G_TYPE_INT, BIG_ENDIAN, + "endianness", G_TYPE_INT, G_BIG_ENDIAN, "signed", G_TYPE_BOOLEAN, TRUE, NULL); break; case GST_MAKE_FOURCC ('u', 'l', 'a', 'w'):