mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 11:45:25 +00:00
videoparsers: Only fail to initialize the plugin if all parsers can't be registered
This commit is contained in:
parent
21653a793a
commit
8e2c5833f1
1 changed files with 5 additions and 5 deletions
|
@ -30,15 +30,15 @@
|
|||
static gboolean
|
||||
plugin_init (GstPlugin * plugin)
|
||||
{
|
||||
gboolean ret;
|
||||
gboolean ret = FALSE;
|
||||
|
||||
ret = gst_element_register (plugin, "h263parse",
|
||||
ret |= gst_element_register (plugin, "h263parse",
|
||||
GST_RANK_PRIMARY + 1, GST_TYPE_H263_PARSE);
|
||||
ret = gst_element_register (plugin, "h264parse",
|
||||
ret |= gst_element_register (plugin, "h264parse",
|
||||
GST_RANK_PRIMARY + 1, GST_TYPE_H264_PARSE);
|
||||
ret = gst_element_register (plugin, "diracparse",
|
||||
ret |= gst_element_register (plugin, "diracparse",
|
||||
GST_RANK_NONE, GST_TYPE_DIRAC_PARSE);
|
||||
ret = gst_element_register (plugin, "mpegvideoparse",
|
||||
ret |= gst_element_register (plugin, "mpegvideoparse",
|
||||
GST_RANK_PRIMARY + 1, GST_TYPE_MPEGVIDEO_PARSE);
|
||||
|
||||
return ret;
|
||||
|
|
Loading…
Reference in a new issue