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 351663 - [wavpackenc] doesn't set correct caps on source pad
[wavpackenc] doesn't set correct caps on source pad
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-16 19:38 UTC by Sebastian Dröge (slomo)
Modified: 2006-08-22 22:07 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
wavpackenc-1.diff (746 bytes, patch)
2006-08-16 19:38 UTC, Sebastian Dröge (slomo)
none Details | Review
wavpackenc-1.diff (1.15 KB, patch)
2006-08-17 11:21 UTC, Sebastian Dröge (slomo)
none Details | Review

Description Sebastian Dröge (slomo) 2006-08-16 19:38:19 UTC
Hi,
the attached patch fixes wavpackenc to set the correct caps on the sinkpad. This fixes a ... ! wavpackenc ! wavpackparse ! wavpackdec ! ... pipeline.

Bye
Comment 1 Sebastian Dröge (slomo) 2006-08-16 19:38:39 UTC
Created attachment 71037 [details] [review]
wavpackenc-1.diff
Comment 2 Sebastian Dröge (slomo) 2006-08-17 11:21:13 UTC
Created attachment 71081 [details] [review]
wavpackenc-1.diff

this one also fixes a small memory leak
Comment 3 Tim-Philipp Müller 2006-08-21 13:31:52 UTC
I think the caps/template should be the other way around: output is framed, so it should be framed=true everywhere really. encoder ! parser ! decoder doesn't work, but that's really more a parser problem (which should probably accept both framed and unframed input if this is supposed to work; if we do change wavpackparse, we need to mess with the ranks though to make sure autoplugging still works right); however, I don't really think it's important that this works, encoder ! decoder workiness is enough IMHO.

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

        * ext/wavpack/gstwavpackenc.c: (gst_wavpack_enc_init),
        (gst_wavpack_enc_set_wp_config), (gst_wavpack_enc_push_block),
        (gst_wavpack_enc_chain), (gst_wavpack_enc_rewrite_first_block),
        (gst_wavpack_enc_sink_event):
          Fix caps set on buffers and template caps (output is framed)
          and make them match (#351663); use GST_WARNING_OBJECT instead of
          GST_ELEMENT_WARNING; simplify push_block(); do some small
          clean-ups here and there; fix memleak (#351663).

Comment 4 Sebastian Dröge (slomo) 2006-08-22 22:07:42 UTC
Works fine here... thanks :)