mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
gst/typefind/gsttypefindfunctions.c: Fix typefinding for MPEG-1 system streams, similar to MPEG-2.
Original commit message from CVS: 2004-01-23 Ronald Bultje <rbultje@ronald.bitfreak.net> * gst/typefind/gsttypefindfunctions.c: (mpeg2_sys_type_find): Fix typefinding for MPEG-1 system streams, similar to MPEG-2.
This commit is contained in:
parent
b5e0b690ca
commit
f14069a741
2 changed files with 10 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2004-01-23 Ronald Bultje <rbultje@ronald.bitfreak.net>
|
||||||
|
|
||||||
|
* gst/typefind/gsttypefindfunctions.c: (mpeg2_sys_type_find):
|
||||||
|
Fix typefinding for MPEG-1 system streams, similar to MPEG-2.
|
||||||
|
|
||||||
2004-01-23 Thomas Vander Stichele <thomas at apestaart dot org>
|
2004-01-23 Thomas Vander Stichele <thomas at apestaart dot org>
|
||||||
|
|
||||||
* ext/esd/esdsink.c: (gst_esdsink_open_audio):
|
* ext/esd/esdsink.c: (gst_esdsink_open_audio):
|
||||||
|
|
|
@ -433,6 +433,11 @@ mpeg2_sys_type_find (GstTypeFind *tf, gpointer unused)
|
||||||
gst_structure_set (gst_caps_get_structure (caps, 0), "mpegversion",
|
gst_structure_set (gst_caps_get_structure (caps, 0), "mpegversion",
|
||||||
G_TYPE_INT, 2, 0);
|
G_TYPE_INT, 2, 0);
|
||||||
gst_type_find_suggest (tf, GST_TYPE_FIND_MAXIMUM, caps);
|
gst_type_find_suggest (tf, GST_TYPE_FIND_MAXIMUM, caps);
|
||||||
|
} else if ((data[4] & 0xF0) == 0x20) {
|
||||||
|
GstCaps *caps = MPEG_SYS_CAPS;
|
||||||
|
gst_structure_set (gst_caps_get_structure (caps, 0), "mpegversion",
|
||||||
|
G_TYPE_INT, 1, 0);
|
||||||
|
gst_type_find_suggest (tf, GST_TYPE_FIND_MAXIMUM, caps);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue