mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
ffmux: gst_element_class_add_pad_template() takes ownership of the pad template
This commit is contained in:
parent
44a1dc0138
commit
27b5013c9c
1 changed files with 0 additions and 3 deletions
|
@ -272,20 +272,17 @@ gst_ffmpegmux_base_init (gpointer g_class)
|
||||||
/* pad templates */
|
/* pad templates */
|
||||||
srctempl = gst_pad_template_new ("src", GST_PAD_SRC, GST_PAD_ALWAYS, srccaps);
|
srctempl = gst_pad_template_new ("src", GST_PAD_SRC, GST_PAD_ALWAYS, srccaps);
|
||||||
gst_element_class_add_pad_template (element_class, srctempl);
|
gst_element_class_add_pad_template (element_class, srctempl);
|
||||||
gst_object_unref (srctempl);
|
|
||||||
|
|
||||||
if (audiosinkcaps) {
|
if (audiosinkcaps) {
|
||||||
audiosinktempl = gst_pad_template_new ("audio_%u",
|
audiosinktempl = gst_pad_template_new ("audio_%u",
|
||||||
GST_PAD_SINK, GST_PAD_REQUEST, audiosinkcaps);
|
GST_PAD_SINK, GST_PAD_REQUEST, audiosinkcaps);
|
||||||
gst_element_class_add_pad_template (element_class, audiosinktempl);
|
gst_element_class_add_pad_template (element_class, audiosinktempl);
|
||||||
gst_object_unref (audiosinktempl);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (videosinkcaps) {
|
if (videosinkcaps) {
|
||||||
videosinktempl = gst_pad_template_new ("video_%u",
|
videosinktempl = gst_pad_template_new ("video_%u",
|
||||||
GST_PAD_SINK, GST_PAD_REQUEST, videosinkcaps);
|
GST_PAD_SINK, GST_PAD_REQUEST, videosinkcaps);
|
||||||
gst_element_class_add_pad_template (element_class, videosinktempl);
|
gst_element_class_add_pad_template (element_class, videosinktempl);
|
||||||
gst_object_unref (videosinktempl);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
beach:
|
beach:
|
||||||
|
|
Loading…
Reference in a new issue