From 789ea6e9d5d52d0f8c9b5ac90332bcf50e3c4d3d Mon Sep 17 00:00:00 2001 From: Thiago Santos Date: Thu, 5 Sep 2013 11:47:21 -0300 Subject: [PATCH] pad-monitor: fix typo on macro usage Pass the correct variable to macro --- validate/gst/validate/gst-validate-pad-monitor.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/validate/gst/validate/gst-validate-pad-monitor.c b/validate/gst/validate/gst-validate-pad-monitor.c index 8fe7122d1e..57ae47baa8 100644 --- a/validate/gst/validate/gst-validate-pad-monitor.c +++ b/validate/gst/validate/gst-validate-pad-monitor.c @@ -1575,7 +1575,6 @@ gst_validate_pad_monitor_buffer_probe (GstPad * pad, GstBuffer * buffer, gpointer udata) { GstValidatePadMonitor *monitor = udata; - GstValidateMonitor *parent = GST_VALIDATE_MONITOR_GET_PARENT (monitor); GST_VALIDATE_PAD_MONITOR_PARENT_LOCK (monitor); GST_VALIDATE_MONITOR_LOCK (monitor); @@ -1597,7 +1596,8 @@ gst_validate_pad_monitor_buffer_probe (GstPad * pad, GstBuffer * buffer, GST_BUFFER_TIMESTAMP (buffer)); /* a GstValidatePadMonitor parent must be a GstValidateElementMonitor */ - if (PAD_PARENT_IS_DECODER (parent)) { + if (PAD_PARENT_IS_DECODER (monitor)) { + /* should not push out of segment data */ if (GST_CLOCK_TIME_IS_VALID (GST_BUFFER_TIMESTAMP (buffer)) && GST_CLOCK_TIME_IS_VALID (GST_BUFFER_DURATION (buffer)) &&