From d9077871828f060841ccbc3f88c4823c055b70b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Loeuillet?= Date: Sat, 8 Jan 2005 15:30:33 +0000 Subject: [PATCH] ext/dv/gstdvdec.c: really fix bpp24/32 dvdec caps (classic rgba indeed) Original commit message from CVS: * ext/dv/gstdvdec.c: really fix bpp24/32 dvdec caps (classic rgba indeed) * gst/asfdemux/gstasfdemux.c: (gst_asf_demux_process_ext_content_desc): don't send text tags if they are empty (bis repetita) --- ChangeLog | 8 ++++++++ gst/asfdemux/gstasfdemux.c | 14 ++++++++------ 2 files changed, 16 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index 135614ee47..6277b2525c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2005-01-08 Stephane LOEUILLET + + * ext/dv/gstdvdec.c: + really fix bpp24/32 dvdec caps (classic rgba indeed) + * gst/asfdemux/gstasfdemux.c: + (gst_asf_demux_process_ext_content_desc): + don't send text tags if they are empty (bis repetita) + 2005-01-08 Stephane LOEUILLET * ext/dv/gstdvdec.c: diff --git a/gst/asfdemux/gstasfdemux.c b/gst/asfdemux/gstasfdemux.c index 8f66765f71..eca5ef1efd 100644 --- a/gst/asfdemux/gstasfdemux.c +++ b/gst/asfdemux/gstasfdemux.c @@ -725,7 +725,6 @@ IsVBR /* get rid of tags with empty value */ if (strlen (value)) { - have_tags = TRUE; g_value_init (&tag_value, G_TYPE_STRING); g_value_set_string (&tag_value, value); } @@ -733,16 +732,19 @@ IsVBR /* 0003 = DWORD */ if (datatype == 3) { - have_tags = TRUE; g_value_init (&tag_value, G_TYPE_INT); g_value_set_int (&tag_value, GUINT32_FROM_LE ((guint32) * value)); } - gst_tag_list_add_values (taglist, GST_TAG_MERGE_APPEND, tags[tag], - &tag_value, NULL); + if (G_IS_VALUE (&tag_value)) { + gst_tag_list_add_values (taglist, GST_TAG_MERGE_APPEND, tags[tag], + &tag_value, NULL); - g_value_unset (&tag_value); - }; + g_value_unset (&tag_value); + + have_tags = TRUE; + } + } j++; } }