6 Oct
2023
6 Oct
'23
4:50 a.m.
Zebediah Figura (@zfigura) commented about dlls/winegstreamer/wg_muxer.c:
+ break; + } + + gst_event_unref(event); + return TRUE; +} + +static GstFlowReturn muxer_sink_chain_cb(GstPad *pad, GstObject *parent, GstBuffer *buffer) +{ + struct wg_muxer *muxer = gst_pad_get_element_private(pad); + + GST_DEBUG("pad %p, parent %p, buffer %p, muxer %p.", pad, parent, buffer, muxer); + + pthread_mutex_lock(&muxer->mutex); + + GST_BUFFER_OFFSET(buffer) = GST_BUFFER_OFFSET_NONE; You can't do that without first calling gst_buffer_make_writable().
It's not clear to me why you want to, though. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/3810#note_47818