mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-02 21:48:55 +00:00
validate: Don't fail getting master report from a ghostpad without target
This commit is contained in:
parent
6300fb9602
commit
057a864223
1 changed files with 6 additions and 0 deletions
|
@ -150,8 +150,14 @@ _find_master_report_on_pad (GstPad * pad, GstValidateReport * report)
|
|||
GstValidatePadMonitor *pad_monitor;
|
||||
GstValidateReport *prev_report;
|
||||
gboolean result = FALSE;
|
||||
GstPad *tmppad = pad;
|
||||
|
||||
pad = _get_actual_pad (pad);
|
||||
if (pad == NULL) {
|
||||
GST_ERROR_OBJECT (tmppad, "Does not have a target yet");
|
||||
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
pad_monitor = g_object_get_data ((GObject *) pad, "validate-monitor");
|
||||
|
||||
|
|
Loading…
Reference in a new issue