mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 11:45:25 +00:00
gst/playback/gststreaminfo.c: Try GST_TAG_CODEC as fallback when extracting the codec name; more debug info.
Original commit message from CVS: * gst/playback/gststreaminfo.c: (cb_probe): Try GST_TAG_CODEC as fallback when extracting the codec name; more debug info.
This commit is contained in:
parent
c253cabc86
commit
ebfe6f3c6a
2 changed files with 14 additions and 0 deletions
|
@ -1,3 +1,9 @@
|
|||
2006-06-14 Tim-Philipp Müller <tim at centricular dot net>
|
||||
|
||||
* gst/playback/gststreaminfo.c: (cb_probe):
|
||||
Try GST_TAG_CODEC as fallback when extracting the
|
||||
codec name; more debug info.
|
||||
|
||||
2006-06-14 Tim-Philipp Müller <tim at centricular dot net>
|
||||
|
||||
* ext/ogg/Makefile.am:
|
||||
|
|
|
@ -187,15 +187,23 @@ cb_probe (GstPad * pad, GstEvent * e, gpointer user_data)
|
|||
if (gst_tag_list_get_string (list, GST_TAG_VIDEO_CODEC, &codec)) {
|
||||
g_free (info->codec);
|
||||
info->codec = codec;
|
||||
GST_LOG_OBJECT (pad, "codec = %s (video)", codec);
|
||||
g_object_notify (G_OBJECT (info), "codec");
|
||||
} else if (gst_tag_list_get_string (list, GST_TAG_AUDIO_CODEC, &codec)) {
|
||||
g_free (info->codec);
|
||||
info->codec = codec;
|
||||
GST_LOG_OBJECT (pad, "codec = %s (audio)", codec);
|
||||
g_object_notify (G_OBJECT (info), "codec");
|
||||
} else if (gst_tag_list_get_string (list, GST_TAG_CODEC, &codec)) {
|
||||
g_free (info->codec);
|
||||
info->codec = codec;
|
||||
GST_LOG_OBJECT (pad, "codec = %s (generic)", codec);
|
||||
g_object_notify (G_OBJECT (info), "codec");
|
||||
}
|
||||
if (gst_tag_list_get_string (list, GST_TAG_LANGUAGE_CODE, &lang)) {
|
||||
g_free (info->langcode);
|
||||
info->langcode = lang;
|
||||
GST_LOG_OBJECT (pad, "language-code = %s", lang);
|
||||
g_object_notify (G_OBJECT (info), "language-code");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue