Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
gst-plugins-good
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Merge Requests
0
Merge Requests
0
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
George Kiagiadakis
gst-plugins-good
Commits
bc6a9327
Commit
bc6a9327
authored
Jan 14, 2017
by
Tim-Philipp Müller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
flacenc: also set PICTURE tag width and height if available
parent
23fb9ead
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
ext/flac/gstflacenc.c
ext/flac/gstflacenc.c
+5
-0
No files found.
ext/flac/gstflacenc.c
View file @
bc6a9327
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment