flacenc: also set PICTURE tag width and height if available

This commit is contained in:
Tim-Philipp Müller 2017-01-14 15:05:36 +00:00
parent 23fb9ead5d
commit bc6a9327f4

View file

@ -683,6 +683,11 @@ gst_flac_enc_set_metadata (GstFlacEnc * flacenc, GstAudioInfo * info,
GST_LOG_OBJECT (flacenc, "Setting picture type %d", image_type);
flacenc->meta[entries]->data.picture.type = image_type;
if (width > 0 && height > 0) {
flacenc->meta[entries]->data.picture.width = width;
flacenc->meta[entries]->data.picture.height = height;
}
FLAC__metadata_object_picture_set_mime_type (flacenc->meta[entries],
(char *) gst_structure_get_name (structure), TRUE);