+2006-02-19 Julien MOUTTE <julien@moutte.net>
+
+ * gst/playback/gststreaminfo.c: (gst_stream_type_get_type),
+ (cb_probe):
+ * gst/playback/gststreaminfo.h: Introduce language informations.
+
2006-02-18 Jan Schmidt <thaytan@mad.scientist.com>
* sys/ximage/ximagesink.c: (gst_ximagesink_check_xshm_calls),
{GST_STREAM_TYPE_AUDIO, "Audio stream", "audio"},
{GST_STREAM_TYPE_VIDEO, "Video stream", "video"},
{GST_STREAM_TYPE_TEXT, "Text stream", "text"},
+ {GST_STREAM_TYPE_SUBPICTURE, "Subpicture stream", "subpicture"},
{GST_STREAM_TYPE_ELEMENT,
"Stream handled by element", "element"},
{0, NULL, NULL},
GstStreamInfo *info = user_data;
if (GST_EVENT_TYPE (e) == GST_EVENT_TAG) {
- gchar *codec; //, *lang;
+ gchar *codec, *lang;
GstTagList *list;
gst_event_parse_tag (e, &list);
info->codec = codec;
g_object_notify (G_OBJECT (info), "codec");
}
-#if 0
if (gst_tag_list_get_string (list, GST_TAG_LANGUAGE_CODE, &lang)) {
g_free (info->langcode);
info->langcode = lang;
g_object_notify (G_OBJECT (info), "language-code");
}
-#endif
}
return TRUE;
typedef enum {
GST_STREAM_TYPE_UNKNOWN = 0,
- GST_STREAM_TYPE_AUDIO = 1, /* an audio stream */
- GST_STREAM_TYPE_VIDEO = 2, /* a video stream */
- GST_STREAM_TYPE_TEXT = 3, /* a subtitle/text stream */
- GST_STREAM_TYPE_ELEMENT = 4, /* stream handled by an element */
+ GST_STREAM_TYPE_AUDIO = 1, /* an audio stream */
+ GST_STREAM_TYPE_VIDEO = 2, /* a video stream */
+ GST_STREAM_TYPE_TEXT = 3, /* a subtitle/text stream */
+ GST_STREAM_TYPE_SUBPICTURE = 4, /* a subtitle in picture-form */
+ GST_STREAM_TYPE_ELEMENT = 5 /* stream handled by an element */
} GstStreamType;
struct _GstStreamInfo {
G_END_DECLS
#endif /* __GST_STREAMINFO_H__ */
-