diff options
author | zeeshan.ali@nokia.com <zeeshan.ali@nokia.com> | 2007-03-22 15:42:51 +0000 |
---|---|---|
committer | Edward Hervey <bilboed@bilboed.com> | 2009-02-21 17:48:52 +0100 |
commit | 7b99c695aa59d5a18394b0ab2960f2c52a04c1b3 (patch) | |
tree | 6a140346dc91a309b75c195495df92961b5594bd /gst/rtpmux | |
parent | c3232e2f49f5a81e850455b97fefc1f60a4f0483 (diff) | |
download | gst-plugins-bad-7b99c695aa59d5a18394b0ab2960f2c52a04c1b3.tar.gz gst-plugins-bad-7b99c695aa59d5a18394b0ab2960f2c52a04c1b3.tar.bz2 gst-plugins-bad-7b99c695aa59d5a18394b0ab2960f2c52a04c1b3.zip |
[MOVED FROM GST-P-FARSIGHT] return newpad instead of NULL and warn if failed to create a pad
20070322154251-65035-cdb6651e61c2eb0205cc8c24693b43f98a2da718.gz
Diffstat (limited to 'gst/rtpmux')
-rw-r--r-- | gst/rtpmux/gstrtpmux.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gst/rtpmux/gstrtpmux.c b/gst/rtpmux/gstrtpmux.c index d285c61c..c87824da 100644 --- a/gst/rtpmux/gstrtpmux.c +++ b/gst/rtpmux/gstrtpmux.c @@ -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; } |