summaryrefslogtreecommitdiffstats
path: root/ext/swfdec/gstswfdec.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/swfdec/gstswfdec.c')
-rw-r--r--ext/swfdec/gstswfdec.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/ext/swfdec/gstswfdec.c b/ext/swfdec/gstswfdec.c
index f2d63744..927df0ad 100644
--- a/ext/swfdec/gstswfdec.c
+++ b/ext/swfdec/gstswfdec.c
@@ -264,7 +264,11 @@ gst_swfdec_loop (GstElement * element)
} else if (ret == SWF_CHANGE) {
GstCaps *caps;
GstPadLinkReturn link_ret;
+
+/* Let's not depend on features that are only in CVS */
+#ifdef HAVE_SWFDEC_0_3_5
GstTagList *taglist;
+#endif
swfdec_decoder_get_image_size (swfdec->decoder,
&swfdec->width, &swfdec->height);
@@ -286,12 +290,14 @@ gst_swfdec_loop (GstElement * element)
}
swfdec->have_format = TRUE;
+#ifdef HAVE_SWFDEC_0_3_5
taglist = gst_tag_list_new ();
gst_tag_list_add (taglist, GST_TAG_MERGE_REPLACE,
GST_TAG_ENCODER_VERSION, swfdec_decoder_get_version (swfdec->decoder),
NULL);
gst_element_found_tags (GST_ELEMENT (swfdec), taglist);
gst_tag_list_free (taglist);
+#endif
} else if (ret == SWF_EOF) {
SwfdecBuffer *audio_buffer;
SwfdecBuffer *video_buffer;