gst_plugins_base/gst/playback/gststreaminfo.c
branchRCL_3
changeset 30 7e817e7e631c
parent 29 567bb019e3e3
equal deleted inserted replaced
29:567bb019e3e3 30:7e817e7e631c
   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 | G_PARAM_STATIC_STRINGS));
   135           G_PARAM_READABLE));
   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,
   138           GST_TYPE_STREAM_TYPE, GST_STREAM_TYPE_UNKNOWN, G_PARAM_READABLE));
   139           G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
       
   140   g_object_class_install_property (gobject_klass, ARG_DECODER,
   139   g_object_class_install_property (gobject_klass, ARG_DECODER,
   141       g_param_spec_string ("decoder", "Decoder",
   140       g_param_spec_string ("decoder", "Decoder",
   142           "The decoder used to decode the stream", NULL,
   141           "The decoder used to decode the stream", NULL, G_PARAM_READABLE));
   143           G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
       
   144   g_object_class_install_property (gobject_klass, ARG_MUTE,
   142   g_object_class_install_property (gobject_klass, ARG_MUTE,
   145       g_param_spec_boolean ("mute", "Mute", "Mute or unmute this stream", FALSE,
   143       g_param_spec_boolean ("mute", "Mute", "Mute or unmute this stream", FALSE,
   146           G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
   144           G_PARAM_READWRITE));
   147   g_object_class_install_property (gobject_klass, ARG_CAPS,
   145   g_object_class_install_property (gobject_klass, ARG_CAPS,
   148       g_param_spec_boxed ("caps", "Capabilities",
   146       g_param_spec_boxed ("caps", "Capabilities",
   149           "Capabilities (or type) of this stream", GST_TYPE_CAPS,
   147           "Capabilities (or type) of this stream", GST_TYPE_CAPS,
   150           G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
   148           G_PARAM_READABLE));
   151   g_object_class_install_property (gobject_klass, ARG_LANG_CODE,
   149   g_object_class_install_property (gobject_klass, ARG_LANG_CODE,
   152       g_param_spec_string ("language-code", "Language code",
   150       g_param_spec_string ("language-code", "Language code",
   153           "Language code for this stream, conforming to ISO-639-1", NULL,
   151           "Language code for this stream, conforming to ISO-639-1",
   154           G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
   152           NULL, G_PARAM_READABLE));
   155   g_object_class_install_property (gobject_klass, ARG_CODEC,
   153   g_object_class_install_property (gobject_klass, ARG_CODEC,
   156       g_param_spec_string ("codec", "Codec", "Codec used to encode the stream",
   154       g_param_spec_string ("codec", "Codec",
   157           NULL, G_PARAM_READABLE | G_PARAM_STATIC_STRINGS));
   155           "Codec used to encode the stream", NULL, G_PARAM_READABLE));
   158 
   156 
   159   gst_stream_info_signals[SIGNAL_MUTED] =
   157   gst_stream_info_signals[SIGNAL_MUTED] =
   160       g_signal_new ("muted", G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST,
   158       g_signal_new ("muted", G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_LAST,
   161       G_STRUCT_OFFSET (GstStreamInfoClass, muted), NULL, NULL,
   159       G_STRUCT_OFFSET (GstStreamInfoClass, muted), NULL, NULL,
   162       gst_marshal_VOID__BOOLEAN, G_TYPE_NONE, 1, G_TYPE_BOOLEAN);
   160       gst_marshal_VOID__BOOLEAN, G_TYPE_NONE, 1, G_TYPE_BOOLEAN);