mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-17 22:06:41 +00:00
flacenc: also set PICTURE tag width and height if available
This commit is contained in:
parent
23fb9ead5d
commit
bc6a9327f4
1 changed files with 5 additions and 0 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue