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:
Marian Cichy 2020-09-15 17:09:57 +02:00 committed by GStreamer Merge Bot
parent 4a93f6e651
commit c145798876

View file

@ -147,7 +147,7 @@ avtp_to_gst_rate (int rate)
static gboolean
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;
GstEvent *event;