Skip to content
Snippets Groups Projects
Commit f77ea81d authored by Kipp Cannon's avatar Kipp Cannon
Browse files

framecpp:

- adjust typefind function rank and name
- adjust framecpp_channeldemux rank
parent 9fe1e3da
No related branches found
No related tags found
No related merge requests found
...@@ -109,8 +109,8 @@ static gboolean register_typefind(GstPlugin *plugin) ...@@ -109,8 +109,8 @@ static gboolean register_typefind(GstPlugin *plugin)
return gst_type_find_register( return gst_type_find_register(
plugin, plugin,
"application/x-igwd-frame", "framecpp_typefind",
0, GST_RANK_PRIMARY,
typefind, typefind,
extensions, extensions,
gst_caps_from_string("application/x-igwd-frame endianness = (int) {1234, 4321}"), gst_caps_from_string("application/x-igwd-frame endianness = (int) {1234, 4321}"),
...@@ -133,10 +133,11 @@ static gboolean plugin_init(GstPlugin *plugin) ...@@ -133,10 +133,11 @@ static gboolean plugin_init(GstPlugin *plugin)
{ {
struct { struct {
const gchar *name; const gchar *name;
GstRank rank;
GType type; GType type;
} *element, elements[] = { } *element, elements[] = {
{"framecpp_channeldemux", FRAMECPP_CHANNELDEMUX_TYPE}, {"framecpp_channeldemux", GST_RANK_SECONDARY, FRAMECPP_CHANNELDEMUX_TYPE},
{NULL, 0}, {NULL, 0, 0},
}; };
/* /*
...@@ -150,7 +151,7 @@ static gboolean plugin_init(GstPlugin *plugin) ...@@ -150,7 +151,7 @@ static gboolean plugin_init(GstPlugin *plugin)
*/ */
for(element = elements; element->name; element++) for(element = elements; element->name; element++)
if(!gst_element_register(plugin, element->name, GST_RANK_NONE, element->type)) if(!gst_element_register(plugin, element->name, element->rank, element->type))
return FALSE; return FALSE;
/* /*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment