textrender: Don't blindly forward all events
authorSebastian Dröge <sebastian@centricular.com>
Mon, 21 Nov 2022 16:43:54 +0000 (18:43 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Mon, 21 Nov 2022 16:43:54 +0000 (18:43 +0200)
Use gst_pad_event_default(), which does the right thing by default.
Especially it does not forward text/x-plain caps downstream.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3445>

subprojects/gst-plugins-base/ext/pango/gsttextrender.c

index e6f5b3afcfd9678803fa234df0f67d30b202722a..f451753f23ac47c3ab316746fae244878d851fa8 100644 (file)
@@ -631,7 +631,7 @@ gst_text_render_event (GstPad * pad, GstObject * parent, GstEvent * event)
       break;
     }
     default:
-      ret = gst_pad_push_event (render->srcpad, event);
+      ret = gst_pad_event_default (pad, parent, event);
       break;
   }