summaryrefslogtreecommitdiff
path: root/gst/debugutils/debugutilsbad.c
diff options
context:
space:
mode:
authorVivia Nikolaidou <vivia@toolsonair.com>2015-05-29 14:27:24 +0300
committerSebastian Dröge <sebastian@centricular.com>2015-06-23 10:28:18 +0200
commit9664d1a6b1796491048eb579e919ab592c1ec2f6 (patch)
treebe84d672a6762f0db19706a65773f5b9f9057092 /gst/debugutils/debugutilsbad.c
parent1248b00c80aff2f24ce094a89ec58ce5c172afb8 (diff)
error-ignore: New element to convert some GstFlowReturn types into others
Can be used to fix misbehaving sinks. It will pass through all buffers until it encounters GST_FLOW_ERROR or GST_FLOW_NOT_NEGOTIATED (configurable). At that point it will unref the buffers and return GST_FLOW_NOT_LINKED (configurable) - until the next READY_TO_PAUSED or FLUSH_STOP. https://bugzilla.gnome.org/show_bug.cgi?id=750098
Diffstat (limited to 'gst/debugutils/debugutilsbad.c')
-rw-r--r--gst/debugutils/debugutilsbad.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gst/debugutils/debugutilsbad.c b/gst/debugutils/debugutilsbad.c
index 2a6e3cc9e..68edd7829 100644
--- a/gst/debugutils/debugutilsbad.c
+++ b/gst/debugutils/debugutilsbad.c
@@ -28,6 +28,7 @@ GType fps_display_sink_get_type (void);
GType gst_chop_my_data_get_type (void);
GType gst_compare_get_type (void);
GType gst_debug_spy_get_type (void);
+GType gst_error_ignore_get_type (void);
GType gst_watchdog_get_type (void);
static gboolean
@@ -45,6 +46,8 @@ plugin_init (GstPlugin * plugin)
gst_debug_spy_get_type ());
gst_element_register (plugin, "watchdog", GST_RANK_NONE,
gst_watchdog_get_type ());
+ gst_element_register (plugin, "errorignore", GST_RANK_NONE,
+ gst_error_ignore_get_type ());
return TRUE;
}