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 731830 - Output-selector switching active-pad doesn't work when you directly connected to sink.
Output-selector switching active-pad doesn't work when you directly connected...
Status: RESOLVED INCOMPLETE
Product: GStreamer
Classification: Platform
Component: common
1.x
Other Linux
: Normal normal
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2014-06-18 10:13 UTC by Sukesh
Modified: 2018-01-23 10:50 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Sukesh 2014-06-18 10:13:48 UTC
Pipeline look like 
gst-launch-1.0 filesrc location=/filepath ! wavparse ! output-selector name=os os. ! alsasink async=true os. ! alsasink async=false

I am trying this pipeline through code. First I set one of alsasink async=true other as async=false to preroll. After that I am setting both the sinks async=false.
We output-selector is connected to prerolled sink playback is fine. But when it is connected to othersink (i.e at the beginning or once i change active pad to this un prerolled sink) it is not playing and giving below error: 

basesink gstbasesink.c:2198:gst_base_sink_do_preroll:<sink2>[00m prerolling object 0xb2403370
basesink gstbasesink.c:2217:gst_base_sink_do_preroll:<sink2>[00m preroll buffer 0:00:09.800000000
audiobasesink gstaudiobasesink.c:1104:gst_audio_base_sink_preroll:<sink2>[00m ringbuffer in wrong state
audiobasesink gstaudiobasesink.c:1105:gst_audio_base_sink_preroll:<sink2>[00m error: sink not negotiated.

But when I connected to same with mp3 playback by placing output-selector in between parser and decoder (... mpegaudioparse ! output-selector name=os os.! mad ! alsasink os. ! mad ! alsasink)  It works fine for any number of time switching active-pad of output-selector.
But if you place output-selector after decoder i.e directly to sink. It is giving same error as above.
Comment 1 RaviKiran 2014-09-02 08:54:26 UTC
I think the solution to this is same as https://bugzilla.gnome.org/show_bug.cgi?id=729811
Comment 2 Sebastian Dröge (slomo) 2014-09-02 09:26:43 UTC
Sukesh, can you confirm that the patch from bug #729811 fixes your problem too?
Comment 3 Thiago Sousa Santos 2014-10-05 13:06:36 UTC
Ping
Comment 4 Tim-Philipp Müller 2018-01-23 10:50:59 UTC
Closing this bug report as no further information has been provided. Please feel free to reopen this bug report if you can provide the information that was asked for in a previous comment.
Thanks!