mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 01:30:38 +00:00
autoconvert: Don't drop upstream events due to silly typo
This commit is contained in:
parent
3ace19461f
commit
ea707c1764
1 changed files with 2 additions and 1 deletions
|
@ -1297,12 +1297,13 @@ gst_auto_convert_internal_src_event (GstPad * pad, GstObject * parent,
|
||||||
gboolean drop = FALSE;
|
gboolean drop = FALSE;
|
||||||
|
|
||||||
GST_AUTOCONVERT_LOCK (autoconvert);
|
GST_AUTOCONVERT_LOCK (autoconvert);
|
||||||
if (autoconvert->current_internal_sinkpad != pad) {
|
if (autoconvert->current_internal_srcpad != pad) {
|
||||||
drop = TRUE;
|
drop = TRUE;
|
||||||
}
|
}
|
||||||
GST_AUTOCONVERT_UNLOCK (autoconvert);
|
GST_AUTOCONVERT_UNLOCK (autoconvert);
|
||||||
|
|
||||||
if (drop) {
|
if (drop) {
|
||||||
|
GST_DEBUG_OBJECT (autoconvert, "Dropping event %" GST_PTR_FORMAT, event);
|
||||||
gst_event_unref (event);
|
gst_event_unref (event);
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue