mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
asfdemux: WM/Track starts counting from 0, adjust to start from 1
This commit is contained in:
parent
aa52dd1320
commit
1c88985618
1 changed files with 8 additions and 1 deletions
|
@ -2445,9 +2445,16 @@ gst_asf_demux_process_ext_content_desc (GstASFDemux * demux, guint8 * data,
|
|||
break;
|
||||
}
|
||||
case ASF_DEMUX_DATA_TYPE_DWORD:{
|
||||
guint uint_val = GST_READ_UINT32_LE (value);
|
||||
|
||||
/* this is the track number */
|
||||
g_value_init (&tag_value, G_TYPE_UINT);
|
||||
g_value_set_uint (&tag_value, (guint) GST_READ_UINT32_LE (value));
|
||||
|
||||
/* WM/Track counts from 0 */
|
||||
if (!strcmp (name_utf8, "WM/Track"))
|
||||
++uint_val;
|
||||
|
||||
g_value_set_uint (&tag_value, uint_val);
|
||||
break;
|
||||
}
|
||||
default:{
|
||||
|
|
Loading…
Reference in a new issue