diff --git a/sys/decklink/gstdecklinkaudiosrc.cpp b/sys/decklink/gstdecklinkaudiosrc.cpp index 855bcbaa47..83000e0a7f 100644 --- a/sys/decklink/gstdecklinkaudiosrc.cpp +++ b/sys/decklink/gstdecklinkaudiosrc.cpp @@ -476,6 +476,7 @@ gst_decklink_audio_src_create (GstPushSrc * bsrc, GstBuffer ** buffer) if (self->flushing) { if (p) capture_packet_free (p); + GST_DEBUG_OBJECT (self, "Flushing"); return GST_FLOW_FLUSHING; } @@ -570,6 +571,11 @@ gst_decklink_audio_src_create (GstPushSrc * bsrc, GstBuffer ** buffer) GST_BUFFER_TIMESTAMP (*buffer) = timestamp; GST_BUFFER_DURATION (*buffer) = duration; + GST_DEBUG_OBJECT (self, + "Outputting buffer %p with timestamp %" GST_TIME_FORMAT " and duration %" + GST_TIME_FORMAT, *buffer, GST_TIME_ARGS (GST_BUFFER_TIMESTAMP (*buffer)), + GST_TIME_ARGS (GST_BUFFER_DURATION (*buffer))); + capture_packet_free (p); return flow_ret; diff --git a/sys/decklink/gstdecklinkvideosrc.cpp b/sys/decklink/gstdecklinkvideosrc.cpp index 12af7bd64f..b600634f2d 100644 --- a/sys/decklink/gstdecklinkvideosrc.cpp +++ b/sys/decklink/gstdecklinkvideosrc.cpp @@ -504,11 +504,14 @@ gst_decklink_video_src_create (GstPushSrc * bsrc, GstBuffer ** buffer) if (self->flushing) { if (f) capture_frame_free (f); + GST_DEBUG_OBJECT (self, "Flushing"); return GST_FLOW_FLUSHING; } g_mutex_lock (&self->lock); if (self->mode == GST_DECKLINK_MODE_AUTO && self->caps_mode != f->mode) { + GST_DEBUG_OBJECT (self, "Mode changed from %d to %d", self->caps_mode, + f->mode); self->caps_mode = f->mode; g_mutex_unlock (&self->lock); g_mutex_lock (&self->input->lock); @@ -542,6 +545,11 @@ gst_decklink_video_src_create (GstPushSrc * bsrc, GstBuffer ** buffer) GST_BUFFER_TIMESTAMP (*buffer) = f->capture_time; GST_BUFFER_DURATION (*buffer) = f->capture_duration; + GST_DEBUG_OBJECT (self, + "Outputting buffer %p with timestamp %" GST_TIME_FORMAT " and duration %" + GST_TIME_FORMAT, *buffer, GST_TIME_ARGS (GST_BUFFER_TIMESTAMP (*buffer)), + GST_TIME_ARGS (GST_BUFFER_DURATION (*buffer))); + capture_frame_free (f); return flow_ret;