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 352476 - [wavpack] documentation, unit tests, memleak fix
[wavpack] documentation, unit tests, memleak fix
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-bad
git master
Other Linux
: Normal normal
: 0.10.4
Assigned To: Tim-Philipp Müller
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2006-08-23 00:47 UTC by Sebastian Dröge (slomo)
Modified: 2006-08-23 10:32 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
wavpack-docs.diff (3.12 KB, patch)
2006-08-23 00:47 UTC, Sebastian Dröge (slomo)
none Details | Review
wavpack-tests.diff (5.50 KB, patch)
2006-08-23 00:48 UTC, Sebastian Dröge (slomo)
none Details | Review
/wavpackenc-memleak.diff (628 bytes, patch)
2006-08-23 00:48 UTC, Sebastian Dröge (slomo)
none Details | Review
wavpack-docs.diff (2.71 KB, patch)
2006-08-23 00:49 UTC, Sebastian Dröge (slomo)
none Details | Review
wavpack-tests.diff (22.94 KB, patch)
2006-08-23 00:58 UTC, Sebastian Dröge (slomo)
committed Details | Review
wavpack-docs.diff (5.50 KB, patch)
2006-08-23 00:58 UTC, Sebastian Dröge (slomo)
committed Details | Review
wavpackenc-memleak.diff (1.50 KB, patch)
2006-08-23 01:00 UTC, Sebastian Dröge (slomo)
rejected Details | Review

Description Sebastian Dröge (slomo) 2006-08-23 00:47:18 UTC
Hi,
the attached patches add 3 unit test suites for all 3 wavpack elements, documentation for them and a fix for a memleak that showed up while creating the unit tests.

Bye
Comment 1 Sebastian Dröge (slomo) 2006-08-23 00:47:43 UTC
Created attachment 71421 [details] [review]
wavpack-docs.diff
Comment 2 Sebastian Dröge (slomo) 2006-08-23 00:48:08 UTC
Created attachment 71422 [details] [review]
wavpack-tests.diff
Comment 3 Sebastian Dröge (slomo) 2006-08-23 00:48:33 UTC
Created attachment 71423 [details] [review]
/wavpackenc-memleak.diff
Comment 4 Sebastian Dröge (slomo) 2006-08-23 00:49:24 UTC
Created attachment 71424 [details] [review]
wavpack-docs.diff
Comment 5 Sebastian Dröge (slomo) 2006-08-23 00:58:21 UTC
Created attachment 71425 [details] [review]
wavpack-tests.diff
Comment 6 Sebastian Dröge (slomo) 2006-08-23 00:58:55 UTC
Created attachment 71426 [details] [review]
wavpack-docs.diff
Comment 7 Sebastian Dröge (slomo) 2006-08-23 01:00:50 UTC
Created attachment 71427 [details] [review]
wavpackenc-memleak.diff
Comment 8 Tim-Philipp Müller 2006-08-23 10:32:44 UTC
Thanks, docs and tests committed:

 2006-08-23  Tim-Philipp Müller  <tim at centricular dot net>

        Patch by: Sebastian Dröge <slomo at circular-chaos.org>

        * tests/check/Makefile.am:
        * tests/check/elements/.cvsignore:
        * tests/check/elements/wavpackdec.c: (setup_wavpackdec),
        (cleanup_wavpackdec), (GST_START_TEST), (wavpackdec_suite), (main):
        * tests/check/elements/wavpackenc.c: (setup_wavpackenc),
        (cleanup_wavpackenc), (GST_START_TEST), (wavpackenc_suite), (main):
        * tests/check/elements/wavpackparse.c: (wavpackparse_found_pad),
        (setup_wavpackparse), (cleanup_wavpackparse), (GST_START_TEST),
        (wavpackparse_suite), (main):
          Add unit tests for wavpack elements (#352476).

 2006-08-23  Tim-Philipp Müller  <tim at centricular dot net>

        Patch by: Sebastian Dröge <slomo at circular-chaos.org>

        * docs/plugins/Makefile.am:
        * docs/plugins/gst-plugins-bad-plugins-docs.sgml:
        * docs/plugins/gst-plugins-bad-plugins-sections.txt:
        * docs/plugins/gst-plugins-bad-plugins.hierarchy:
        * docs/plugins/inspect/plugin-wavpack.xml:
        * ext/wavpack/gstwavpackdec.c:
        * ext/wavpack/gstwavpackdec.h:
        * ext/wavpack/gstwavpackenc.c:
        * ext/wavpack/gstwavpackenc.h:
        * ext/wavpack/gstwavpackparse.c:
        * ext/wavpack/gstwavpackparse.h:
          Add docs for wavpack elements (#352476).


About that memleak fix ... the code is wrong of course, but I'm not sure the fix is right. We need to send a newsegment event on both pads before sending any data, so the event bit needs to be done in both cases.

 2006-08-23  Tim-Philipp Müller  <tim at centricular dot net>

	* ext/wavpack/gstwavpackenc.c: (gst_wavpack_enc_push_block):
	  Fix mem leak, send newsegment event on correction pad
	  as well (#352476).

	* ext/wavpack/gstwavpackparse.c: (gst_wavpack_parse_base_init):
	  Restore original author (on Sebastian's request).

	* tests/check/Makefile.am:
	* tests/check/gst-plugins-bad.supp:
	  Add (so far empty) suppression file for -bad. Remove
	  wavpackenc test from VALGRIND_TO_FIX now that the leak
	  is fixed.