summaryrefslogtreecommitdiffstats
path: root/gst/mxf/mxfjpeg2000.c
diff options
context:
space:
mode:
authorSebastian Dröge <slomo@circular-chaos.org>2008-12-01 15:24:37 +0000
committerSebastian Dröge <slomo@circular-chaos.org>2008-12-01 15:24:37 +0000
commit65009ed81b1434e17c94928da2ca57f164e429aa (patch)
tree82e649e04c43220640a2edc4161f5dd5368a3473 /gst/mxf/mxfjpeg2000.c
parentcffc0f920726841aa7c41bd418402adae5812488 (diff)
downloadgst-plugins-bad-65009ed81b1434e17c94928da2ca57f164e429aa.tar.gz
gst-plugins-bad-65009ed81b1434e17c94928da2ca57f164e429aa.tar.bz2
gst-plugins-bad-65009ed81b1434e17c94928da2ca57f164e429aa.zip
gst/mxf/: Add the codec name, and if possible the avg bitrate, to the pad's taglist.
Original commit message from CVS: * gst/mxf/mxfaes-bwf.c: (mxf_bwf_create_caps): * gst/mxf/mxfalaw.c: (mxf_alaw_create_caps): * gst/mxf/mxfdemux.c: (gst_mxf_demux_handle_generic_container_essence_element): * gst/mxf/mxfdv-dif.c: (mxf_dv_dif_create_caps): * gst/mxf/mxfjpeg2000.c: (mxf_jpeg2000_create_caps): * gst/mxf/mxfmpeg.c: (mxf_mpeg_es_create_caps), (mxf_mpeg_create_caps): Add the codec name, and if possible the avg bitrate, to the pad's taglist.
Diffstat (limited to 'gst/mxf/mxfjpeg2000.c')
-rw-r--r--gst/mxf/mxfjpeg2000.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/gst/mxf/mxfjpeg2000.c b/gst/mxf/mxfjpeg2000.c
index e480f894..5b3611bb 100644
--- a/gst/mxf/mxfjpeg2000.c
+++ b/gst/mxf/mxfjpeg2000.c
@@ -106,8 +106,8 @@ mxf_jpeg2000_create_caps (MXFMetadataGenericPackage * package,
p = (MXFMetadataGenericPictureEssenceDescriptor *) track->descriptor[i];
f = track->descriptor[i];
break;
- } else if (((MXFMetadataGenericDescriptor *) track->descriptor[i])->
- is_file_descriptor
+ } else if (((MXFMetadataGenericDescriptor *) track->
+ descriptor[i])->is_file_descriptor
&& ((MXFMetadataGenericDescriptor *) track->descriptor[i])->type !=
MXF_METADATA_MULTIPLE_DESCRIPTOR) {
f = track->descriptor[i];
@@ -129,5 +129,10 @@ mxf_jpeg2000_create_caps (MXFMetadataGenericPackage * package,
GST_WARNING ("Only a generic file descriptor found");
}
+ if (!*tags)
+ *tags = gst_tag_list_new ();
+ gst_tag_list_add (*tags, GST_TAG_MERGE_APPEND, GST_TAG_VIDEO_CODEC,
+ "JPEG 2000", NULL);
+
return caps;
}