mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 16:50:47 +00:00
taglist: make some tags of type GstSample
Make the image and attachment tags of type GstSample so that we can include extra caps and info along with the buffer data.
This commit is contained in:
parent
5477399881
commit
f95e77afc6
2 changed files with 7 additions and 6 deletions
|
@ -270,12 +270,12 @@ _priv_gst_tag_initialize (void)
|
||||||
gst_tag_register (GST_TAG_LANGUAGE_CODE, GST_TAG_FLAG_META, G_TYPE_STRING,
|
gst_tag_register (GST_TAG_LANGUAGE_CODE, GST_TAG_FLAG_META, G_TYPE_STRING,
|
||||||
_("language code"),
|
_("language code"),
|
||||||
_("language code for this stream, conforming to ISO-639-1"), NULL);
|
_("language code for this stream, conforming to ISO-639-1"), NULL);
|
||||||
gst_tag_register (GST_TAG_IMAGE, GST_TAG_FLAG_META, GST_TYPE_BUFFER,
|
gst_tag_register (GST_TAG_IMAGE, GST_TAG_FLAG_META, GST_TYPE_SAMPLE,
|
||||||
_("image"), _("image related to this stream"), gst_tag_merge_use_first);
|
_("image"), _("image related to this stream"), gst_tag_merge_use_first);
|
||||||
gst_tag_register (GST_TAG_PREVIEW_IMAGE, GST_TAG_FLAG_META, GST_TYPE_BUFFER,
|
gst_tag_register (GST_TAG_PREVIEW_IMAGE, GST_TAG_FLAG_META, GST_TYPE_SAMPLE,
|
||||||
/* TRANSLATORS: 'preview image' = image that shows a preview of the full image */
|
/* TRANSLATORS: 'preview image' = image that shows a preview of the full image */
|
||||||
_("preview image"), _("preview image related to this stream"), NULL);
|
_("preview image"), _("preview image related to this stream"), NULL);
|
||||||
gst_tag_register (GST_TAG_ATTACHMENT, GST_TAG_FLAG_META, GST_TYPE_BUFFER,
|
gst_tag_register (GST_TAG_ATTACHMENT, GST_TAG_FLAG_META, GST_TYPE_SAMPLE,
|
||||||
_("attachment"), _("file attached to this stream"),
|
_("attachment"), _("file attached to this stream"),
|
||||||
gst_tag_merge_use_first);
|
gst_tag_merge_use_first);
|
||||||
gst_tag_register (GST_TAG_BEATS_PER_MINUTE, GST_TAG_FLAG_META, G_TYPE_DOUBLE,
|
gst_tag_register (GST_TAG_BEATS_PER_MINUTE, GST_TAG_FLAG_META, G_TYPE_DOUBLE,
|
||||||
|
|
|
@ -24,6 +24,7 @@
|
||||||
#define __GST_TAGLIST_H__
|
#define __GST_TAGLIST_H__
|
||||||
|
|
||||||
#include <gst/gstdatetime.h>
|
#include <gst/gstdatetime.h>
|
||||||
|
#include <gst/gstsample.h>
|
||||||
#include <gst/gstbuffer.h>
|
#include <gst/gstbuffer.h>
|
||||||
#include <gst/glib-compat.h>
|
#include <gst/glib-compat.h>
|
||||||
|
|
||||||
|
@ -719,7 +720,7 @@ gboolean gst_tag_list_get_buffer_index (const GstTagList * list,
|
||||||
/**
|
/**
|
||||||
* GST_TAG_IMAGE:
|
* GST_TAG_IMAGE:
|
||||||
*
|
*
|
||||||
* image (buffer) (buffer caps should specify the content type and preferably
|
* image (sample) (sample caps should specify the content type and preferably
|
||||||
* also set "image-type" field as #GstTagImageType)
|
* also set "image-type" field as #GstTagImageType)
|
||||||
*
|
*
|
||||||
* Since: 0.10.6
|
* Since: 0.10.6
|
||||||
|
@ -729,7 +730,7 @@ gboolean gst_tag_list_get_buffer_index (const GstTagList * list,
|
||||||
* GST_TAG_PREVIEW_IMAGE:
|
* GST_TAG_PREVIEW_IMAGE:
|
||||||
*
|
*
|
||||||
* image that is meant for preview purposes, e.g. small icon-sized version
|
* image that is meant for preview purposes, e.g. small icon-sized version
|
||||||
* (buffer) (buffer caps should specify the content type)
|
* (sample) (sample caps should specify the content type)
|
||||||
*
|
*
|
||||||
* Since: 0.10.7
|
* Since: 0.10.7
|
||||||
*/
|
*/
|
||||||
|
@ -738,7 +739,7 @@ gboolean gst_tag_list_get_buffer_index (const GstTagList * list,
|
||||||
/**
|
/**
|
||||||
* GST_TAG_ATTACHMENT:
|
* GST_TAG_ATTACHMENT:
|
||||||
*
|
*
|
||||||
* generic file attachment (buffer) (buffer caps should specify the content
|
* generic file attachment (sample) (sample caps should specify the content
|
||||||
* type and if possible set "filename" to the file name of the
|
* type and if possible set "filename" to the file name of the
|
||||||
* attachment)
|
* attachment)
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in a new issue