mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 11:45:25 +00:00
tests: Fix memory leak in test rtpaux test
https://bugzilla.gnome.org/show_bug.cgi?id=772496
This commit is contained in:
parent
6fe40c92bf
commit
6542edd909
1 changed files with 4 additions and 1 deletions
|
@ -163,10 +163,13 @@ request_pt_map (GstElement * rtpbin, guint session, guint pt,
|
|||
gpointer user_data)
|
||||
{
|
||||
SessionData *data = (SessionData *) user_data;
|
||||
gchar *caps_str;
|
||||
g_print ("Looking for caps for pt %u in session %u, have %u\n", pt, session,
|
||||
data->sessionNum);
|
||||
if (session == data->sessionNum) {
|
||||
g_print ("Returning %s\n", gst_caps_to_string (data->caps));
|
||||
caps_str = gst_caps_to_string (data->caps);
|
||||
g_print ("Returning %s\n", caps_str);
|
||||
g_free (caps_str);
|
||||
return gst_caps_ref (data->caps);
|
||||
}
|
||||
return NULL;
|
||||
|
|
Loading…
Reference in a new issue