mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-10-05 02:02:26 +00:00
applemedia: Remove some unnecessary variables
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1613>
This commit is contained in:
parent
6ea4455d56
commit
6ae4497c07
1 changed files with 7 additions and 7 deletions
|
@ -216,7 +216,6 @@ gst_vtenc_base_init (GstVTEncClass * klass)
|
||||||
const int min_height = 1, max_height = G_MAXINT;
|
const int min_height = 1, max_height = G_MAXINT;
|
||||||
const int min_fps_n = 0, max_fps_n = G_MAXINT;
|
const int min_fps_n = 0, max_fps_n = G_MAXINT;
|
||||||
const int min_fps_d = 1, max_fps_d = 1;
|
const int min_fps_d = 1, max_fps_d = 1;
|
||||||
GstPadTemplate *sink_template, *src_template;
|
|
||||||
GstCaps *src_caps;
|
GstCaps *src_caps;
|
||||||
gchar *longname, *description;
|
gchar *longname, *description;
|
||||||
|
|
||||||
|
@ -230,9 +229,10 @@ gst_vtenc_base_init (GstVTEncClass * klass)
|
||||||
g_free (longname);
|
g_free (longname);
|
||||||
g_free (description);
|
g_free (description);
|
||||||
|
|
||||||
sink_template = gst_pad_template_new ("sink",
|
gst_element_class_add_pad_template (element_class,
|
||||||
GST_PAD_SINK, GST_PAD_ALWAYS, gst_static_caps_get (&sink_caps));
|
gst_pad_template_new ("sink", GST_PAD_SINK, GST_PAD_ALWAYS,
|
||||||
gst_element_class_add_pad_template (element_class, sink_template);
|
gst_static_caps_get (&sink_caps));
|
||||||
|
|
||||||
|
|
||||||
src_caps = gst_caps_new_simple (codec_details->mimetype,
|
src_caps = gst_caps_new_simple (codec_details->mimetype,
|
||||||
"width", GST_TYPE_INT_RANGE, min_width, max_width,
|
"width", GST_TYPE_INT_RANGE, min_width, max_width,
|
||||||
|
@ -292,9 +292,9 @@ gst_vtenc_base_init (GstVTEncClass * klass)
|
||||||
default:
|
default:
|
||||||
g_assert_not_reached ();
|
g_assert_not_reached ();
|
||||||
}
|
}
|
||||||
src_template = gst_pad_template_new ("src", GST_PAD_SRC, GST_PAD_ALWAYS,
|
|
||||||
src_caps);
|
gst_element_class_add_pad_template (element_class,
|
||||||
gst_element_class_add_pad_template (element_class, src_template);
|
gst_pad_template_new ("src", GST_PAD_SRC, GST_PAD_ALWAYS, src_caps));
|
||||||
gst_caps_unref (src_caps);
|
gst_caps_unref (src_caps);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue