mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-01 21:18:52 +00:00
pad-monitor: fix typo when acessing parents data
This commit is contained in:
parent
103bf74768
commit
5f261269f8
1 changed files with 3 additions and 2 deletions
|
@ -1448,6 +1448,7 @@ gst_validate_pad_monitor_buffer_probe (GstPad * pad, GstBuffer * buffer,
|
||||||
gpointer udata)
|
gpointer udata)
|
||||||
{
|
{
|
||||||
GstValidatePadMonitor *monitor = udata;
|
GstValidatePadMonitor *monitor = udata;
|
||||||
|
GstValidateMonitor *parent = GST_VALIDATE_MONITOR_GET_PARENT (monitor);
|
||||||
|
|
||||||
GST_VALIDATE_PAD_MONITOR_PARENT_LOCK (monitor);
|
GST_VALIDATE_PAD_MONITOR_PARENT_LOCK (monitor);
|
||||||
GST_VALIDATE_MONITOR_LOCK (monitor);
|
GST_VALIDATE_MONITOR_LOCK (monitor);
|
||||||
|
@ -1461,9 +1462,9 @@ gst_validate_pad_monitor_buffer_probe (GstPad * pad, GstBuffer * buffer,
|
||||||
gst_validate_pad_monitor_check_late_serialized_events (monitor,
|
gst_validate_pad_monitor_check_late_serialized_events (monitor,
|
||||||
GST_BUFFER_TIMESTAMP (buffer));
|
GST_BUFFER_TIMESTAMP (buffer));
|
||||||
|
|
||||||
if (G_LIKELY (GST_VALIDATE_MONITOR_GET_PARENT (monitor))) {
|
if (G_LIKELY (parent)) {
|
||||||
/* a GstValidatePadMonitor parent must be a GstValidateElementMonitor */
|
/* a GstValidatePadMonitor parent must be a GstValidateElementMonitor */
|
||||||
if (GST_VALIDATE_ELEMENT_MONITOR_ELEMENT_IS_DECODER (monitor)) {
|
if (GST_VALIDATE_ELEMENT_MONITOR_ELEMENT_IS_DECODER (parent)) {
|
||||||
/* should not push out of segment data */
|
/* should not push out of segment data */
|
||||||
if (GST_CLOCK_TIME_IS_VALID (GST_BUFFER_TIMESTAMP (buffer)) &&
|
if (GST_CLOCK_TIME_IS_VALID (GST_BUFFER_TIMESTAMP (buffer)) &&
|
||||||
GST_CLOCK_TIME_IS_VALID (GST_BUFFER_DURATION (buffer)) &&
|
GST_CLOCK_TIME_IS_VALID (GST_BUFFER_DURATION (buffer)) &&
|
||||||
|
|
Loading…
Reference in a new issue