summaryrefslogtreecommitdiffstats
path: root/tests/icles
diff options
context:
space:
mode:
authorEdgard Lima <edgard.lima@indt.org.br>2008-02-10 21:03:54 +0000
committerEdgard Lima <edgard.lima@indt.org.br>2008-02-10 21:03:54 +0000
commit88ab47e6c728f3e11c497ac5aea2d2057fb864eb (patch)
tree4ec2e918d24fc55e7a91eeeceff7a1f9d5f29cb0 /tests/icles
parent998fd9cbd4b1707c8de1cde918a9c313072e9355 (diff)
downloadgst-plugins-bad-88ab47e6c728f3e11c497ac5aea2d2057fb864eb.tar.gz
gst-plugins-bad-88ab47e6c728f3e11c497ac5aea2d2057fb864eb.tar.bz2
gst-plugins-bad-88ab47e6c728f3e11c497ac5aea2d2057fb864eb.zip
Revert changes to 2008-02-09 due to frozen.
Original commit message from CVS: Revert changes to 2008-02-09 due to frozen.
Diffstat (limited to 'tests/icles')
-rw-r--r--tests/icles/metadata_editor.c34
1 files changed, 1 insertions, 33 deletions
diff --git a/tests/icles/metadata_editor.c b/tests/icles/metadata_editor.c
index e8bef14b..02212bb2 100644
--- a/tests/icles/metadata_editor.c
+++ b/tests/icles/metadata_editor.c
@@ -137,30 +137,6 @@ GString *filename = NULL;
*/
static void
-dump_tag_buffer(const char *tag, guint8 * buf, guint32 size)
-{
- guint32 i;
- printf("\nDumping %s (size = %u)\n\n", tag, size);
-
- for(i=0; i<size; ++i) {
-
- if (i % 16 == 0)
- printf("%04x:%04x | ", i >> 16, i & 0xFFFF);
-
- printf("%02x", buf[i]);
-
- if (i % 16 != 15)
- printf(" ");
- else
- printf("\n");
-
- }
-
- printf("\n\n");
-
-}
-
-static void
insert_tag_on_tree (const GstTagList * list, const gchar * tag,
gpointer user_data)
{
@@ -174,13 +150,6 @@ insert_tag_on_tree (const GstTagList * list, const gchar * tag,
if (gst_tag_get_type (tag) == G_TYPE_STRING) {
if (!gst_tag_list_get_string_index (list, tag, 0, &str))
g_assert_not_reached ();
- } else if ( gst_tag_get_type (tag) == GST_TYPE_BUFFER ) {
- const GValue *val = NULL;
- GstBuffer *buf;
- val = gst_tag_list_get_value_index (list, tag, 0);
- buf = gst_value_get_buffer (val);
- dump_tag_buffer(tag, GST_BUFFER_DATA(buf), GST_BUFFER_SIZE(buf));
- str = g_strdup("It has been printed to stdout");
} else {
str = g_strdup_value_contents (gst_tag_list_get_value_index (list, tag, 0));
}
@@ -246,8 +215,7 @@ change_tag_list (GstTagList ** list, const gchar * tag, const gchar * value)
}
break;
default:
- g_printerr ("Tags of type '%s' are not supported yet for editing"
- " by this application.\n",
+ g_printerr ("Tags of type '%s' are not supported yet.\n",
g_type_name (type));
break;
}