GNOME Bugzilla – Bug 723332
a crash while trying to port from gst 0.10
Last modified: 2014-01-31 01:48:22 UTC
This might seem as if it would be better handled as a support question than a bug, but as awhile back I've asked (on #gstreamer) if my attempt at porting looks sane, I was told it did. So, zdoom has a semi-unofficial openal branch, that uses gstreamer 0.10 (https://github.com/rheit/zdoom/tree/openal). The whole gstreamer code is in src/sound/oalsound.cpp. I've tried porting this to 1.0. I was mostly successful, as it *usually* works quite well, but besides a need for some polish (that is minor code changes due to caps string changes), there are still issues with this patch. First of all, every now and then (probably on each new file added to the queue) gstreamer prints a critical for gst_segment_to_running_time assertion about 'segment->format' (GST_FORMAT_BYTES) != 'format' (GST_FORMAT_TIME). Second, which may or may not be related, in an easily reachable place in hacx.wad from http://drnostromo.com/hacx I'm hitting 'dropping short buffer' condition of helper_find_pick (libs/gst/base/gsttypefindhelper.c) followed shortly by a crash. The same place works fine with 0.10, but as I said, I can't see anything *obviously* wrong with the code. gdb output doesn't really help me - it's a double free assert from glibc triggered by gst_buffer_unref. For the attached patch to work, at minimum an obvious change in src/CMakeFiles.txt in Linux block regarding gstreamer version. In the patch default audio sink of playbin is used instead of openalsink, but that's not the source of the problem - that works just fine in 0.10.
Sory, problem with connection. *** This bug has been marked as a duplicate of bug 723331 ***