[Bug 758887] New: [pulsesink] if i set prebuf to -1, pulsesink can't handle EOS message

GStreamer (GNOME Bugzilla) bugzilla at gnome.org
Mon Nov 30 21:49:10 PST 2015


https://bugzilla.gnome.org/show_bug.cgi?id=758887

            Bug ID: 758887
           Summary: [pulsesink] if i set prebuf to -1, pulsesink can't
                    handle EOS message
    Classification: Platform
           Product: GStreamer
           Version: 1.4.5
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: Normal
         Component: gst-plugins-good
          Assignee: gstreamer-bugs at lists.freedesktop.org
          Reporter: galaxyra at gmail.com
        QA Contact: gstreamer-bugs at lists.freedesktop.org
     GNOME version: ---

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  0xb5e0f3b4 in __GI_ppoll (fds=0xad59c770, nfds=1, timeout=<optimized out>,
sigmask=sigmask at entry=0x0) at ../sysdeps/unix/sysv/linux/ppoll.c:56
#1  0xb54ad998 in ppoll (__ss=0x0, __timeout=<optimized out>, __nfds=<optimized
out>, __fds=<optimized out>) at /usr/include/bits/poll2.h:77
#2  gst_poll_wait (set=0xac909fa0, timeout=723812960) at gstpoll.c:1248
#3  0xb54bde08 in gst_system_clock_id_wait_jitter_unlocked (clock=0xad52d208,
entry=0xad529838, jitter=<optimized out>, restart=1) at gstsystemclock.c:684
#4  0xb5483c94 in gst_clock_id_wait (id=0xad529838, jitter=jitter at entry=0x0) at
gstclock.c:539
#5  0xb34a5460 in gst_base_sink_wait_clock (sink=sink at entry=0xad52bed8,
time=<optimized out>, jitter=jitter at entry=0x0) at gstbasesink.c:2104
#6  0xb34a8880 in gst_base_sink_wait (sink=sink at entry=0xad52bed8,
time=<optimized out>, jitter=jitter at entry=0x0) at gstbasesink.c:2326
#7  0xac0d9a14 in gst_audio_base_sink_drain (sink=0xad52bed8) at
gstaudiobasesink.c:1009
#8  0xac0dcff0 in gst_audio_base_sink_wait_event (bsink=0xad52bed8,
event=0xad503778) at gstaudiobasesink.c:1073
#9  0xb34a2f1e in gst_base_sink_wait_event (event=0xad503778,
basesink=0xad52bed8) at gstbasesink.c:2982
#10 gst_base_sink_default_event (basesink=0xad52bed8, event=0xad503778) at
gstbasesink.c:3024
#11 0xa7e8fe38 in ?? () from /usr/lib/gstreamer-1.0/libgstpulse.so
#12 0xb349e4ae in gst_base_sink_event (pad=<optimized out>, parent=0xad52bed8,
event=0xad503778) at gstbasesink.c:3190
#13 0xb549d69e in gst_pad_send_event_unchecked (pad=pad at entry=0xad528160,
event=event at entry=0xad503778,
type=type at entry=GST_PAD_PROBE_TYPE_EVENT_DOWNSTREAM) at gstpad.c:5135
#14 0xb549dd86 in gst_pad_push_event_unchecked (pad=pad at entry=0xad528018,
event=0xad503778, type=type at entry=GST_PAD_PROBE_TYPE_EVENT_DOWNSTREAM) at
gstpad.c:4833
#15 0xb549e0f4 in push_sticky (pad=0xad528018, ev=0xa86fd3c0,
user_data=0xa86fd404) at gstpad.c:3443
#16 0xb549c942 in events_foreach (pad=pad at entry=0xad528018, func=0xb549e011
<push_sticky>, user_data=user_data at entry=0xa86fd404) at gstpad.c:570
#17 0xb54a4c0c in check_sticky (event=0xad503778, pad=0xad528018) at
gstpad.c:3499
#18 gst_pad_push_event (pad=pad at entry=0xad528018, event=0xad503778) at
gstpad.c:4952

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list