mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-29 11:40:38 +00:00
rtpmux: return newpad instead of NULL and warn if failed to create a pad
20070322154251-65035-cdb6651e61c2eb0205cc8c24693b43f98a2da718.gz
This commit is contained in:
parent
23d3ed5c5f
commit
1603223ee5
1 changed files with 3 additions and 1 deletions
|
@ -208,7 +208,7 @@ gst_rtp_mux_create_sinkpad (GstRTPMux * rtp_mux, GstPadTemplate * templ)
|
|||
GST_WARNING_OBJECT (rtp_mux, "this is not our template!\n");
|
||||
}
|
||||
|
||||
return NULL;
|
||||
return newpad;
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -249,6 +249,8 @@ gst_rtp_mux_request_new_pad (GstElement * element,
|
|||
newpad = gst_rtp_mux_create_sinkpad (rtp_mux, templ);
|
||||
if (newpad)
|
||||
gst_rtp_mux_setup_sinkpad (rtp_mux, newpad);
|
||||
else
|
||||
GST_WARNING_OBJECT (rtp_mux, "failed to create request pad");
|
||||
|
||||
return newpad;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue