mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
avtp: avtpaafdepay: fix crash when building caps
gst_caps_new_simple gets wrong types for rate and channel which may lead to a crash. As 64-bit values for rate, depth, format, channels does not make much sense and since any other functionality in gstreamer expects G_TYPE_INT for channels and rate, we should stick to that Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1576>
This commit is contained in:
parent
4a93f6e651
commit
c145798876
1 changed files with 1 additions and 1 deletions
|
@ -147,7 +147,7 @@ avtp_to_gst_rate (int rate)
|
||||||
|
|
||||||
static gboolean
|
static gboolean
|
||||||
gst_avtp_aaf_depay_push_caps_event (GstAvtpAafDepay * avtpaafdepay,
|
gst_avtp_aaf_depay_push_caps_event (GstAvtpAafDepay * avtpaafdepay,
|
||||||
guint64 rate, guint64 depth, guint64 format, guint64 channels)
|
gint rate, gint depth, gint format, gint channels)
|
||||||
{
|
{
|
||||||
GstCaps *caps;
|
GstCaps *caps;
|
||||||
GstEvent *event;
|
GstEvent *event;
|
||||||
|
|
Loading…
Reference in a new issue