After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 110542 - [PATCH] - wave files are little endian
[PATCH] - wave files are little endian
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins
0.6.1
Other All
: Urgent normal
: 0.6.2
Assigned To: Ronald Bultje
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2003-04-11 11:35 UTC by Benjamin Otte (Company)
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
fix (654 bytes, patch)
2003-04-11 11:35 UTC, Benjamin Otte (Company)
none Details | Review
how about this? (1.26 KB, patch)
2003-04-12 13:43 UTC, Ronald Bultje
none Details | Review
use copy_on_write() instead (1.21 KB, patch)
2003-04-12 13:52 UTC, Ronald Bultje
none Details | Review
endian fix (not mine) (3.31 KB, patch)
2003-05-08 05:09 UTC, Andres Salomon
none Details | Review

Description Benjamin Otte (Company) 2003-04-11 11:35:14 UTC
Fix caps of wavenc to onlz accept little endian audio.
Comment 1 Benjamin Otte (Company) 2003-04-11 11:35:43 UTC
Created attachment 15638 [details] [review]
fix
Comment 2 Ronald Bultje 2003-04-12 13:43:29 UTC
Bah, that's evil... Most plugins assume we handle audio in the
arch-native form, so if a specific plugins only wants one endian sort,
then it should do conversion internally. Long-term, separate filter
elements might come in handy here, but a short-term solution is to
just do it inside wavenc. Patch attached.
Comment 3 Ronald Bultje 2003-04-12 13:43:50 UTC
Created attachment 15665 [details] [review]
how about this?
Comment 4 Ronald Bultje 2003-04-12 13:52:09 UTC
Created attachment 15666 [details] [review]
use copy_on_write() instead
Comment 5 Ronald Bultje 2003-04-12 15:07:27 UTC
Middle patch applied, because it's easiest.

Real issue here is that we would want either a filter plugin that's
automatically inserted, or we'd want some core functions to copy a
buffer (everything *except the actual data*!), something like
gst_buffer_copy_empty(). Combining that with
gst_data_need_copy_on_write() would fix this much nicer, but that's
all something for HEAD + long-term, not for 0.6.1.
Comment 6 Andres Salomon 2003-05-08 05:09:57 UTC
Created attachment 16353 [details] [review]
endian fix (not mine)
Comment 7 Andres Salomon 2003-05-08 05:12:24 UTC
I'm using this patch on my ppc box; it's required to get wavparse
working.  The patch originated from BBB or Company, I believe; I
apologize to the author for not remembering their name. :)
Comment 8 Christian Fredrik Kalager Schaller 2003-05-12 13:23:58 UTC
Assigning this to Ronald as the patch should be applied before 0.6.2
Comment 9 Ronald Bultje 2003-05-13 12:24:25 UTC
This patch originally covered wavenc, not wavparse. Both patches are
already on 0.6.x CVS. HEAD has different ideas (ask Benjamin for details).

So yeah, we don't need this. :).