mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-11-22 17:41:05 +00:00
Pad::new_from_static_pad_template_with_gtype() can return None
This commit is contained in:
parent
00cbd49923
commit
5625a75b1b
1 changed files with 1 additions and 1 deletions
|
@ -22,7 +22,7 @@ impl PadTemplate {
|
||||||
pub fn new_from_static_pad_template_with_gtype(
|
pub fn new_from_static_pad_template_with_gtype(
|
||||||
pad_template: &StaticPadTemplate,
|
pad_template: &StaticPadTemplate,
|
||||||
pad_type: glib::types::Type,
|
pad_type: glib::types::Type,
|
||||||
) -> PadTemplate {
|
) -> Option<PadTemplate> {
|
||||||
assert_initialized_main_thread!();
|
assert_initialized_main_thread!();
|
||||||
unsafe {
|
unsafe {
|
||||||
from_glib_none(
|
from_glib_none(
|
||||||
|
|
Loading…
Reference in a new issue