130 gobject_klass->get_property = gst_stream_info_get_property; |
130 gobject_klass->get_property = gst_stream_info_get_property; |
131 |
131 |
132 g_object_class_install_property (gobject_klass, ARG_PAD, |
132 g_object_class_install_property (gobject_klass, ARG_PAD, |
133 g_param_spec_object ("object", "object", |
133 g_param_spec_object ("object", "object", |
134 "Source Pad or object of the stream", GST_TYPE_OBJECT, |
134 "Source Pad or object of the stream", GST_TYPE_OBJECT, |
135 G_PARAM_READABLE)); |
135 G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); |
136 g_object_class_install_property (gobject_klass, ARG_TYPE, |
136 g_object_class_install_property (gobject_klass, ARG_TYPE, |
137 g_param_spec_enum ("type", "Type", "Type of the stream", |
137 g_param_spec_enum ("type", "Type", "Type of the stream", |
138 GST_TYPE_STREAM_TYPE, GST_STREAM_TYPE_UNKNOWN, G_PARAM_READABLE)); |
138 GST_TYPE_STREAM_TYPE, GST_STREAM_TYPE_UNKNOWN, |
|
139 G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); |
139 g_object_class_install_property (gobject_klass, ARG_DECODER, |
140 g_object_class_install_property (gobject_klass, ARG_DECODER, |
140 g_param_spec_string ("decoder", "Decoder", |
141 g_param_spec_string ("decoder", "Decoder", |
141 "The decoder used to decode the stream", NULL, G_PARAM_READABLE)); |
142 "The decoder used to decode the stream", NULL, |
|
143 G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); |
142 g_object_class_install_property (gobject_klass, ARG_MUTE, |
144 g_object_class_install_property (gobject_klass, ARG_MUTE, |
143 g_param_spec_boolean ("mute", "Mute", "Mute or unmute this stream", FALSE, |
145 g_param_spec_boolean ("mute", "Mute", "Mute or unmute this stream", FALSE, |
144 G_PARAM_READWRITE)); |
146 G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS)); |
145 g_object_class_install_property (gobject_klass, ARG_CAPS, |
147 g_object_class_install_property (gobject_klass, ARG_CAPS, |
146 g_param_spec_boxed ("caps", "Capabilities", |
148 g_param_spec_boxed ("caps", "Capabilities", |
147 "Capabilities (or type) of this stream", GST_TYPE_CAPS, |
149 "Capabilities (or type) of this stream", GST_TYPE_CAPS, |
148 G_PARAM_READABLE)); |
150 G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); |
149 g_object_class_install_property (gobject_klass, ARG_LANG_CODE, |
151 g_object_class_install_property (gobject_klass, ARG_LANG_CODE, |
150 g_param_spec_string ("language-code", "Language code", |
152 g_param_spec_string ("language-code", "Language code", |
151 "Language code for this stream, conforming to ISO-639-1", |
153 "Language code for this stream, conforming to ISO-639-1", NULL, |
152 NULL, G_PARAM_READABLE)); |
154 G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); |
153 g_object_class_install_property (gobject_klass, ARG_CODEC, |
155 g_object_class_install_property (gobject_klass, ARG_CODEC, |
154 g_param_spec_string ("codec", "Codec", |
156 g_param_spec_string ("codec", "Codec", "Codec used to encode the stream", |
155 "Codec used to encode the stream", NULL, G_PARAM_READABLE)); |
157 NULL, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS)); |
156 |
158 |
157 gst_stream_info_signals[SIGNAL_MUTED] = |
159 gst_stream_info_signals[SIGNAL_MUTED] = |
158 g_signal_new ("muted", G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST, |
160 g_signal_new ("muted", G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST, |
159 G_STRUCT_OFFSET (GstStreamInfoClass, muted), NULL, NULL, |
161 G_STRUCT_OFFSET (GstStreamInfoClass, muted), NULL, NULL, |
160 gst_marshal_VOID__BOOLEAN, G_TYPE_NONE, 1, G_TYPE_BOOLEAN); |
162 gst_marshal_VOID__BOOLEAN, G_TYPE_NONE, 1, G_TYPE_BOOLEAN); |