Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
libnice
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cpp-libs
libnice
Commits
de03be44
Commit
de03be44
authored
Jan 06, 2023
by
Olivier Crête
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gst: Use gst-full compatible registration functions
parent
79feb7f6
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
20 additions
and
4 deletions
+20
-4
gst/gstnice.c
gst/gstnice.c
+2
-4
gst/gstnicesink.c
gst/gstnicesink.c
+7
-0
gst/gstnicesink.h
gst/gstnicesink.h
+2
-0
gst/gstnicesrc.c
gst/gstnicesrc.c
+7
-0
gst/gstnicesrc.h
gst/gstnicesrc.h
+2
-0
No files found.
gst/gstnice.c
View file @
de03be44
...
@@ -44,12 +44,10 @@
...
@@ -44,12 +44,10 @@
static
gboolean
static
gboolean
plugin_init
(
GstPlugin
*
plugin
)
plugin_init
(
GstPlugin
*
plugin
)
{
{
if
(
!
gst_element_register
(
plugin
,
"nicesrc"
,
if
(
!
gst_element_register_nicesrc
(
plugin
))
GST_RANK_NONE
,
GST_TYPE_NICE_SRC
))
return
FALSE
;
return
FALSE
;
if
(
!
gst_element_register
(
plugin
,
"nicesink"
,
if
(
!
gst_element_register_nicesink
(
plugin
))
GST_RANK_NONE
,
GST_TYPE_NICE_SINK
))
return
FALSE
;
return
FALSE
;
return
TRUE
;
return
TRUE
;
...
...
gst/gstnicesink.c
View file @
de03be44
...
@@ -537,3 +537,10 @@ gst_nice_sink_change_state (GstElement * element, GstStateChange transition)
...
@@ -537,3 +537,10 @@ gst_nice_sink_change_state (GstElement * element, GstStateChange transition)
return
ret
;
return
ret
;
}
}
gboolean
gst_element_register_nicesink
(
GstPlugin
*
plugin
)
{
return
gst_element_register
(
plugin
,
"nicesink"
,
GST_RANK_NONE
,
GST_TYPE_NICE_SINK
);
}
gst/gstnicesink.h
View file @
de03be44
...
@@ -88,6 +88,8 @@ struct _GstNiceSinkClass
...
@@ -88,6 +88,8 @@ struct _GstNiceSinkClass
GType
gst_nice_sink_get_type
(
void
);
GType
gst_nice_sink_get_type
(
void
);
gboolean
gst_element_register_nicesink
(
GstPlugin
*
plugin
);
G_END_DECLS
G_END_DECLS
#endif
#endif
gst/gstnicesrc.c
View file @
de03be44
...
@@ -449,3 +449,10 @@ gst_nice_src_change_state (GstElement * element, GstStateChange transition)
...
@@ -449,3 +449,10 @@ gst_nice_src_change_state (GstElement * element, GstStateChange transition)
return
ret
;
return
ret
;
}
}
gboolean
gst_element_register_nicesrc
(
GstPlugin
*
plugin
)
{
return
gst_element_register
(
plugin
,
"nicesrc"
,
GST_RANK_NONE
,
GST_TYPE_NICE_SRC
);
}
gst/gstnicesrc.h
View file @
de03be44
...
@@ -81,6 +81,8 @@ struct _GstNiceSrcClass
...
@@ -81,6 +81,8 @@ struct _GstNiceSrcClass
GType
gst_nice_src_get_type
(
void
);
GType
gst_nice_src_get_type
(
void
);
gboolean
gst_element_register_nicesrc
(
GstPlugin
*
plugin
);
G_END_DECLS
G_END_DECLS
#endif // _GSTNICESRC_H
#endif // _GSTNICESRC_H
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment