diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2014-05-01 13:05:05 +0200 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2014-05-10 15:46:08 +0200 |
commit | 7c07e32b90d6a70d733bdb8619b55f886892a963 (patch) | |
tree | cae15f29797f0c3b9d28e62cd3a85c23abeb604c | |
parent | cf5f7cffc0777bf0ec03511ec8321504d4399141 (diff) | |
download | gstreamer-plugins-base-7c07e32b90d6a70d733bdb8619b55f886892a963.tar.gz |
subtitleoverlay: Don't block on non-serialized events
https://bugzilla.gnome.org/show_bug.cgi?id=729321
-rw-r--r-- | gst/playback/gstsubtitleoverlay.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gst/playback/gstsubtitleoverlay.c b/gst/playback/gstsubtitleoverlay.c index 76ff34599..401a9bff7 100644 --- a/gst/playback/gstsubtitleoverlay.c +++ b/gst/playback/gstsubtitleoverlay.c @@ -1013,6 +1013,12 @@ _pad_blocked_cb (GstPad * pad, GstPadProbeInfo * info, gpointer user_data) GstCaps *subcaps; GList *l, *factories = NULL; + if (GST_IS_EVENT (info->data) && !GST_EVENT_IS_SERIALIZED (info->data)) { + GST_DEBUG_OBJECT (pad, "Letting non-serialized event %s pass", + GST_EVENT_TYPE_NAME (info->data)); + return GST_PAD_PROBE_PASS; + } + GST_DEBUG_OBJECT (pad, "Pad blocked"); GST_SUBTITLE_OVERLAY_LOCK (self); |