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 347085 - some problems with wavparse
some problems with wavparse
Status: RESOLVED NOTABUG
Product: GStreamer
Classification: Platform
Component: gst-plugins-good
git master
Other All
: Normal normal
: NONE
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2006-07-10 10:33 UTC by Janos Csikos
Modified: 2006-07-10 12:16 UTC
See Also:
GNOME target: ---
GNOME version: 2.11/2.12


Attachments
source of test (2.50 KB, text/plain)
2006-07-10 10:48 UTC, Janos Csikos
Details

Description Janos Csikos 2006-07-10 10:33:23 UTC
Please describe the problem:
I've had some issues with the wavparse element.

Debug infos:

INFO  (0x804f0a8 - 0:00:00.059017000)     GST_ELEMENT_PADS(18263) gstelement.c(821):gst_element_get_static_pad: no such pad 'wavparse_src' in element "wav-decoder"
INFO  (0x804f0a8 - 0:00:00.059130000)     GST_ELEMENT_PADS(18263) gstutils.c(978):gst_element_get_compatible_pad:<wav-decoder> Could not find a compatible pad to link to converter:sink


Steps to reproduce:


Actual results:


Expected results:


Does this happen every time?


Other information:
Comment 1 Janos Csikos 2006-07-10 10:48:30 UTC
Created attachment 68709 [details]
source of test
Comment 2 Tim-Philipp Müller 2006-07-10 10:53:07 UTC
This is not a bug, the code won't work like this (it was OK in 0.8, but isn't any longer in 0.10).

wavparse has dynamic source pads, it will create those only when it has determined the type of data the file contains, so you can't link wavparse and another element right away, you'll have to watch for the pad-added signal and then connect the rest of the pipeline from there (similar to what you have to do with oggdemux or decodebin, see HelloWorld example in Application Development Manual).

Where is this code from?

Do we need to fix/update this anywhere?
Comment 3 Janos Csikos 2006-07-10 11:00:56 UTC
Sorry, I attached the code now.
Comment 4 Tim-Philipp Müller 2006-07-10 11:14:40 UTC
Thanks, I've seen the code you attached. Basically, this line will fail (for the reason outlined in the comment above it):

  /* link together - note that we cannot link the parser and
   * decoder yet, becuse the parser uses dynamic pads. For that,
   * we set a pad-added signal handler. */
  gst_element_link_many (source, decoder, conv, sink, NULL);


decoder ! conv

can't be linked, because decoder does not have a source pad yet at this point, it will only add its source pad when it gets data (ie. after you change state to PAUSED or PLAYING).
Comment 5 Janos Csikos 2006-07-10 11:46:07 UTC
Ok.

Thank You.
Comment 6 Tim-Philipp Müller 2006-07-10 12:16:06 UTC
Feel free to pop into #gstreamer on irc.freenode.net if you can't get it to work or have any questions :)