mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-07 07:58:51 +00:00
qtdemux: covert art tag type is GstSample not GstBuffer now
https://bugzilla.gnome.org/show_bug.cgi?id=671534
This commit is contained in:
parent
2a5ee7465d
commit
688e820573
1 changed files with 9 additions and 5 deletions
|
@ -648,23 +648,27 @@ gst_qt_mux_add_mp4_cover (GstQTMux * qtmux, const GstTagList * list,
|
||||||
{
|
{
|
||||||
GValue value = { 0, };
|
GValue value = { 0, };
|
||||||
GstBuffer *buf;
|
GstBuffer *buf;
|
||||||
|
GstSample *sample;
|
||||||
GstCaps *caps;
|
GstCaps *caps;
|
||||||
GstStructure *structure;
|
GstStructure *structure;
|
||||||
gint flags = 0;
|
gint flags = 0;
|
||||||
GstMapInfo map;
|
GstMapInfo map;
|
||||||
|
|
||||||
g_return_if_fail (gst_tag_get_type (tag) == GST_TYPE_BUFFER);
|
g_return_if_fail (gst_tag_get_type (tag) == GST_TYPE_SAMPLE);
|
||||||
|
|
||||||
if (!gst_tag_list_copy_value (&value, list, tag))
|
if (!gst_tag_list_copy_value (&value, list, tag))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
buf = gst_value_get_buffer (&value);
|
sample = gst_value_get_sample (&value);
|
||||||
|
|
||||||
|
if (!sample)
|
||||||
|
goto done;
|
||||||
|
|
||||||
|
buf = gst_sample_get_buffer (sample);
|
||||||
if (!buf)
|
if (!buf)
|
||||||
goto done;
|
goto done;
|
||||||
|
|
||||||
/* FIXME-0.11 caps metadata ? */
|
caps = gst_sample_get_caps (sample);
|
||||||
/* caps = gst_buffer_get_caps (buf); */
|
|
||||||
caps = NULL;
|
|
||||||
if (!caps) {
|
if (!caps) {
|
||||||
GST_WARNING_OBJECT (qtmux, "preview image without caps");
|
GST_WARNING_OBJECT (qtmux, "preview image without caps");
|
||||||
goto done;
|
goto done;
|
||||||
|
|
Loading…
Reference in a new issue