Updated the editor to use the capslist

Original commit message from CVS:
Updated the editor to use the capslist
Added change state in cdparanoia
This commit is contained in:
Wim Taymans 2000-12-31 17:32:16 +00:00
parent 1c5119618d
commit 5a4c627651

View file

@ -318,14 +318,14 @@ gst_editor_pads_create (GstEditorProperty *property, GstEditorElement *element)
while (pads) { while (pads) {
GstPad *pad = (GstPad *)pads->data; GstPad *pad = (GstPad *)pads->data;
GstCaps *caps = gst_pad_get_caps (pad); GList *caps = gst_pad_get_caps_list (pad);
gchar *mime; gchar *mime;
gchar *data[2]; gchar *data[2];
GtkCTreeNode *padnode; GtkCTreeNode *padnode;
if (caps) { if (caps) {
GstType *type; GstType *type;
type = gst_type_find_by_id (caps->id); type = gst_type_find_by_id (((GstCaps *)caps->data)->id);
mime = type->mime; mime = type->mime;
} }
else { else {
@ -337,7 +337,13 @@ gst_editor_pads_create (GstEditorProperty *property, GstEditorElement *element)
padnode = gtk_ctree_insert_node (GTK_CTREE (tree), NULL, NULL, data, 0, padnode = gtk_ctree_insert_node (GTK_CTREE (tree), NULL, NULL, data, 0,
NULL, NULL, NULL, NULL, FALSE, TRUE); NULL, NULL, NULL, NULL, FALSE, TRUE);
gst_editor_add_caps_to_tree (caps, tree, padnode); while (caps) {
GstCaps *cap = (GstCaps *)caps->data;
gst_editor_add_caps_to_tree (cap, tree, padnode);
caps = g_list_next (caps);
}
pads = g_list_next (pads); pads = g_list_next (pads);
} }
@ -345,14 +351,14 @@ gst_editor_pads_create (GstEditorProperty *property, GstEditorElement *element)
pads = gst_element_get_padtemplate_list(realelement); pads = gst_element_get_padtemplate_list(realelement);
while (pads) { while (pads) {
GstPadTemplate *templ = (GstPadTemplate *)pads->data; GstPadTemplate *templ = (GstPadTemplate *)pads->data;
GstCaps *caps = templ->caps; GList *caps = templ->caps;
gchar *mime; gchar *mime;
gchar *data[2]; gchar *data[2];
GtkCTreeNode *padnode; GtkCTreeNode *padnode;
if (caps) { if (caps) {
GstType *type; GstType *type;
type = gst_type_find_by_id (caps->id); type = gst_type_find_by_id (((GstCaps *)caps->data)->id);
mime = type->mime; mime = type->mime;
} }
else { else {
@ -364,7 +370,13 @@ gst_editor_pads_create (GstEditorProperty *property, GstEditorElement *element)
padnode = gtk_ctree_insert_node (GTK_CTREE (tree), NULL, NULL, data, 0, padnode = gtk_ctree_insert_node (GTK_CTREE (tree), NULL, NULL, data, 0,
NULL, NULL, NULL, NULL, FALSE, TRUE); NULL, NULL, NULL, NULL, FALSE, TRUE);
gst_editor_add_caps_to_tree (caps, tree, padnode); while (caps) {
GstCaps *cap = (GstCaps *)caps->data;
gst_editor_add_caps_to_tree (cap, tree, padnode);
caps = g_list_next (caps);
}
pads = g_list_next (pads); pads = g_list_next (pads);
} }