mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-18 12:15:19 +00:00
omx: Set default roles for the components if none were set from the config file
This commit is contained in:
parent
a86debaf36
commit
254bee9be9
3 changed files with 18 additions and 0 deletions
|
@ -54,12 +54,18 @@ static void
|
|||
gst_omx_h264_dec_base_init (gpointer g_class)
|
||||
{
|
||||
GstElementClass *element_class = GST_ELEMENT_CLASS (g_class);
|
||||
GstOMXVideoDecClass *videodec_class = GST_OMX_VIDEO_DEC_CLASS (g_class);
|
||||
|
||||
gst_element_class_set_details_simple (element_class,
|
||||
"OpenMAX H.264 Video Decoder",
|
||||
"Codec/Decoder/Video",
|
||||
"Decode H.264 video streams",
|
||||
"Sebastian Dröge <sebastian.droege@collabora.co.uk>");
|
||||
|
||||
/* If no role was set from the config file we set the
|
||||
* default H.264 video decoder role */
|
||||
if (!videodec_class->component_role)
|
||||
videodec_class->component_role = "video_decoder.avc";
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
@ -54,12 +54,18 @@ static void
|
|||
gst_omx_mpeg4_video_dec_base_init (gpointer g_class)
|
||||
{
|
||||
GstElementClass *element_class = GST_ELEMENT_CLASS (g_class);
|
||||
GstOMXVideoDecClass *videodec_class = GST_OMX_VIDEO_DEC_CLASS (g_class);
|
||||
|
||||
gst_element_class_set_details_simple (element_class,
|
||||
"OpenMAX MPEG4 Video Decoder",
|
||||
"Codec/Decoder/Video",
|
||||
"Decode MPEG4 video streams",
|
||||
"Sebastian Dröge <sebastian.droege@collabora.co.uk>");
|
||||
|
||||
/* If no role was set from the config file we set the
|
||||
* default MPEG4 video decoder role */
|
||||
if (!videodec_class->component_role)
|
||||
videodec_class->component_role = "video_decoder.mpeg4";
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
@ -54,12 +54,18 @@ static void
|
|||
gst_omx_mpeg4_video_enc_base_init (gpointer g_class)
|
||||
{
|
||||
GstElementClass *element_class = GST_ELEMENT_CLASS (g_class);
|
||||
GstOMXVideoEncClass *videoenc_class = GST_OMX_VIDEO_ENC_CLASS (g_class);
|
||||
|
||||
gst_element_class_set_details_simple (element_class,
|
||||
"OpenMAX MPEG4 Video Encoder",
|
||||
"Codec/Encoder/Video",
|
||||
"Encode MPEG4 video streams",
|
||||
"Sebastian Dröge <sebastian.droege@collabora.co.uk>");
|
||||
|
||||
/* If no role was set from the config file we set the
|
||||
* default MPEG4 video encoder role */
|
||||
if (!videoenc_class->component_role)
|
||||
videoenc_class->component_role = "video_encoder.mpeg4";
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
Loading…
Reference in a new issue