downloadbuffer: properly log when receiving events

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/7140>
This commit is contained in:
Guillaume Desmottes 2024-07-03 09:03:59 +02:00 committed by GStreamer Marge Bot
parent d56f601b48
commit d54bbfbd61

View file

@ -1007,6 +1007,8 @@ gst_download_buffer_handle_sink_event (GstPad * pad, GstObject * parent,
dlbuf = GST_DOWNLOAD_BUFFER (parent); dlbuf = GST_DOWNLOAD_BUFFER (parent);
GST_DEBUG_OBJECT (dlbuf, "%" GST_PTR_FORMAT, event);
switch (GST_EVENT_TYPE (event)) { switch (GST_EVENT_TYPE (event)) {
case GST_EVENT_FLUSH_START: case GST_EVENT_FLUSH_START:
{ {
@ -1384,10 +1386,7 @@ gst_download_buffer_handle_src_event (GstPad * pad, GstObject * parent,
gboolean res = TRUE; gboolean res = TRUE;
GstDownloadBuffer *dlbuf = GST_DOWNLOAD_BUFFER (parent); GstDownloadBuffer *dlbuf = GST_DOWNLOAD_BUFFER (parent);
#ifndef GST_DISABLE_GST_DEBUG GST_DEBUG_OBJECT (dlbuf, "%" GST_PTR_FORMAT, event);
GST_DEBUG_OBJECT (dlbuf, "got event %p (%s)",
event, GST_EVENT_TYPE_NAME (event));
#endif
switch (GST_EVENT_TYPE (event)) { switch (GST_EVENT_TYPE (event)) {
case GST_EVENT_FLUSH_START: case GST_EVENT_FLUSH_START: