diff options
author | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2011-07-21 10:38:26 +0200 |
---|---|---|
committer | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2011-07-21 10:38:26 +0200 |
commit | 254bee9be9ee46b7cf83915ff6d1c641a302a68d (patch) | |
tree | 27f63b405831943a5eeca495f74af6e2c090147d /omx/gstomxh264dec.c | |
parent | a86debaf36d39eb9cc66f39508f4ccfeabbdb587 (diff) |
omx: Set default roles for the components if none were set from the config file
Diffstat (limited to 'omx/gstomxh264dec.c')
-rw-r--r-- | omx/gstomxh264dec.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/omx/gstomxh264dec.c b/omx/gstomxh264dec.c index ef601e2..1a25602 100644 --- a/omx/gstomxh264dec.c +++ b/omx/gstomxh264dec.c @@ -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 |