Big endian fix.
authorWim Taymans <wim.taymans@gmail.com>
Wed, 31 Jul 2002 21:25:38 +0000 (21:25 +0000)
committerWim Taymans <wim.taymans@gmail.com>
Wed, 31 Jul 2002 21:25:38 +0000 (21:25 +0000)
Original commit message from CVS:
Big endian fix.

ext/vorbis/vorbisfile.c

index 866f8c7..39bd4b3 100644 (file)
@@ -413,7 +413,7 @@ gst_vorbisfile_loop (GstElement *element)
   time = (GstClockTime) (ov_time_tell (&vorbisfile->vf) * GST_SECOND);
 
   ret = ov_read (&vorbisfile->vf, GST_BUFFER_DATA (outbuf), GST_BUFFER_SIZE (outbuf), 
-                 0, 2, 1, &vorbisfile->current_section);
+                 (G_BYTE_ORDER == G_LITTLE_ENDIAN ? 0 : 1), sizeof (gint16), 1, &vorbisfile->current_section);
 
   if (vorbisfile->need_discont) {
     GstEvent *discont;