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 171272 - Elements inside spider do not go to PLAYING state
Elements inside spider do not go to PLAYING state
Status: RESOLVED INVALID
Product: GStreamer
Classification: Platform
Component: gstreamer (core)
0.8.9
Other Linux
: Normal major
: NONE
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2005-03-22 21:08 UTC by Sebastien Cote
Modified: 2005-11-11 17:05 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
wav file with mp3 (41.61 KB, audio/x-wav)
2005-06-09 14:36 UTC, Sebastien Cote
Details

Description Sebastien Cote 2005-03-22 21:08:42 UTC
Take a WAV file with MP3 inside, then run:

  gst-launch-0.8 filesrc location="mp3.wav" ! wavparse ! spider !
audio/x-raw-int ! fakesink

  (process:15911): GStreamer-WARNING **: push on peer of pad sink_ident:src but
peer is not active

Replacing spider by mad in the previous pipeline works fine. When spider inserts
mad, it syncs mad's state to it's own (PAUSED) and mad never goes to PLAYING
state because gst_bin_change_state() has already been called on the spider to go
to PLAYING.

Using the pending state of the parent in gst_element_sync_state_with_parent()
fixed the problem, but I doubt its the right fix.
Comment 1 Ronald Bultje 2005-03-23 22:20:32 UTC
That's not the right fix. Sounds like a change-state race.
Comment 2 Ronald Bultje 2005-06-09 14:24:05 UTC
So, for my sanity, can you attach a small MP3-in-WAV file for testing here?
Comment 3 Sebastien Cote 2005-06-09 14:36:58 UTC
Created attachment 47507 [details]
wav file with mp3

Sample file. I didn't test this since GStreamer-0.8.9 so it might have been
fixed since then.
Comment 4 Luca Ognibene 2005-09-19 18:26:55 UTC
Tested with current cvs:

gst-launch-0.8 filesrc location="mp3.wav" ! wavparse ! spider ! audio/x-raw-int
! fakesink
(process:8119): GStreamer-WARNING **: push on peer of pad sink_ident:src but
peer is not active

luogni@bucefalo:~/Temp$ LC_ALL=C gst-launch-0.8 filesrc location="mp3.wav" !
wavparse ! decodebin ! audio/x-raw-int ! fakesink
RUNNING pipeline ...
ERROR: from element /pipeline0/decodebin0/typefind: Could not determine type of
stream.

gst-launch-0.8 filesrc location="mp3.wav" ! decodebin ! audio/x-raw-int ! fakesink
works fine


gst-launch-0.8 filesrc location="mp3.wav" ! spider ! audio/x-raw-int ! fakesink
works fine
Comment 5 Luca Ognibene 2005-10-11 19:06:49 UTC
is it ok to close this bug? decodebin works fine and i don't thinks anyone still
works on spider..
Comment 6 Luca Ognibene 2005-11-11 17:05:42 UTC
no answer = good answer :)