[Bug 686327] New: mpegtsmux: fix refcount issue with input buffers

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Wed Oct 17 12:35:18 PDT 2012


https://bugzilla.gnome.org/show_bug.cgi?id=686327
  GStreamer | gst-plugins-bad | 1.x

           Summary: mpegtsmux: fix refcount issue with input buffers
    Classification: Platform
           Product: GStreamer
           Version: 1.x
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: gst-plugins-bad
        AssignedTo: gstreamer-bugs at lists.freedesktop.org
        ReportedBy: ylatuya at gmail.com
         QAContact: gstreamer-bugs at lists.freedesktop.org
     GNOME version: ---


Created an attachment (id=226680)
 View: https://bugzilla.gnome.org/attachment.cgi?id=226680
 Review: https://bugzilla.gnome.org/review?bug=686327&attachment=226680

Fix refcount issue with input buffers

It seems there is refcount error in stream_data_new and mpegtsmux is segfault
with both schroenc and x264enc with the following pipeline:

gst-launch-1.0 videotestsrc ! x264enc ! mpegtsmux ! fakesink

(gst-launch-1.0:6206): GStreamer-CRITICAL **: gst_mini_object_unref: assertion
`mini_object->refcount > 0' failed

Program received signal SIGTRAP, Trace/breakpoint trap.
[Cambiando a Thread 0x7ffff3b4b700 (LWP 6225)]
0x00007ffff75a3f95 in g_logv () from
/home/andoni/cerbero/dist/linux_x86_64/lib/libglib-2.0.so.0
(gdb) bt
#0  0x00007ffff75a3f95 in g_logv () from
/home/andoni/cerbero/dist/linux_x86_64/lib/libglib-2.0.so.0
#1  0x00007ffff75a40ac in g_log () from
/home/andoni/cerbero/dist/linux_x86_64/lib/libglib-2.0.so.0
#2  0x00007ffff75a40ed in g_return_if_fail_warning () from
/home/andoni/cerbero/dist/linux_x86_64/lib/libglib-2.0.so.0
#3  0x00007ffff52a77b5 in gst_buffer_unref (buf=<optimized out>) at
/home/andoni/cerbero/dist/linux_x86_64/include/gstreamer-1.0/gst/gstbuffer.h:350
#4  _gst_video_codec_frame_free (frame=0x7fffec023170) at gstvideoutils.c:46
#5  gst_video_codec_frame_unref (frame=0x7fffec023170) at gstvideoutils.c:128
#6  0x00007ffff52a63d9 in gst_video_encoder_finish_frame (encoder=0x7b6c00,
frame=0x7fffec023170) at gstvideoencoder.c:1868
#7  0x00007ffff4bac932 in gst_x264_enc_encode_frame (encoder=0x7b6c00,
pic_in=<optimized out>, input_frame=<optimized out>, i_nal=<optimized out>,
send=1) at gstx264enc.c:1732
#8  0x00007ffff4bad529 in gst_x264_enc_handle_frame (video_enc=<optimized out>,
frame=0x7fffed77d3d0) at gstx264enc.c:1604
#9  0x00007ffff52a4daf in gst_video_encoder_chain (pad=<optimized out>,
parent=<optimized out>, buf=<optimized out>) at gstvideoencoder.c:1341
#10 0x00007ffff7b43e29 in gst_pad_chain_data_unchecked (data=0x7fffed77d2c0,
type=<optimized out>, pad=0x7b42f0) at gstpad.c:3654
#11 gst_pad_push_data (pad=0x7b40c0, type=<optimized out>, data=<optimized
out>) at gstpad.c:3871
#12 0x00007ffff505c0b0 in gst_base_src_loop (pad=0x7b40c0) at gstbasesrc.c:2700
#13 0x00007ffff7b7171f in gst_task_func (task=0x7c6000) at gsttask.c:316
#14 0x00007ffff75c6e12 in g_thread_pool_thread_proxy () from
/home/andoni/cerbero/dist/linux_x86_64/lib/libglib-2.0.so.0
#15 0x00007ffff75c684d in g_thread_proxy () from
/home/andoni/cerbero/dist/linux_x86_64/lib/libglib-2.0.so.0
#16 0x00007ffff7333e9a in start_thread (arg=0x7ffff3b4b700) at
pthread_create.c:308
#17 0x00007ffff7060dbd in clone () at
../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#18 0x0000000000000000 in ?? ()

-- 
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- 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