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 758887 - [pulsesink] if i set prebuf to -1, pulsesink can't handle EOS message
[pulsesink] if i set prebuf to -1, pulsesink can't handle EOS message
Status: RESOLVED INCOMPLETE
Product: GStreamer
Classification: Platform
Component: gst-plugins-good
1.4.5
Other Linux
: Normal normal
: NONE
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2015-12-01 05:49 UTC by LEE
Modified: 2016-05-22 19:48 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description LEE 2015-12-01 05:49:10 UTC
Hello. i'm working in audiofw.
I have a question about prebuf in pulsesink.
i set prebuf to -1 like this.

  wanted.tlength = spec->segtotal * spec->segsize;
  wanted.maxlength = -1;
  wanted.prebuf = -1; <-------------- here
  wanted.minreq = spec->segsize;

after that, pulsesink can't handle EOS message. it made it lockup.
we are using audio-clock for that. if i follow system clock, lockup wouldn't be happened but we have to use audio-clock.

i have attached callstack, it seems to wait for something.
please check this problems..
Thank you.

callstack
  • #0 __GI_ppoll
    at ../sysdeps/unix/sysv/linux/ppoll.c line 56
  • #1 ppoll
    at /usr/include/bits/poll2.h line 77
  • #2 gst_poll_wait
    at gstpoll.c line 1248
  • #3 gst_system_clock_id_wait_jitter_unlocked
    at gstsystemclock.c line 684
  • #4 gst_clock_id_wait
    at gstclock.c line 539
  • #5 gst_base_sink_wait_clock
    at gstbasesink.c line 2104
  • #6 gst_base_sink_wait
    at gstbasesink.c line 2326
  • #7 gst_audio_base_sink_drain
    at gstaudiobasesink.c line 1009
  • #8 gst_audio_base_sink_wait_event
    at gstaudiobasesink.c line 1073
  • #9 gst_base_sink_wait_event
    at gstbasesink.c line 2982
  • #10 gst_base_sink_default_event
    at gstbasesink.c line 3024
  • #11 ??
    from /usr/lib/gstreamer-1.0/libgstpulse.so
  • #12 gst_base_sink_event
    at gstbasesink.c line 3190
  • #13 gst_pad_send_event_unchecked
    at gstpad.c line 5135
  • #14 gst_pad_push_event_unchecked
    at gstpad.c line 4833
  • #15 push_sticky
    at gstpad.c line 3443
  • #16 events_foreach
    at gstpad.c line 570
  • #17 check_sticky
    at gstpad.c line 3499
  • #18 gst_pad_push_event
    at gstpad.c line 4952

Comment 1 Tim-Philipp Müller 2016-01-16 20:48:01 UTC
Do I understand you correctly that you are modifying the pulsesink/src source code and then you run into this problem, but it doesn't happen with the original unmodified code as it is upstream? If so, I would suggest you post your question on the gstreamer-devel mailing list, as this is a bug tracker and not a support forum and you will reach many more people on that list.
Comment 2 Tim-Philipp Müller 2016-05-22 19:48:12 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!