projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
23d3ed5
)
rtpmux: return newpad instead of NULL and warn if failed to create a pad
author
zeeshan.ali@nokia.com
<zeeshan.ali@nokia.com>
Thu, 22 Mar 2007 15:42:51 +0000
(15:42 +0000)
committer
Tim-Philipp Müller
<tim@centricular.net>
Sun, 16 Dec 2012 16:29:38 +0000
(16:29 +0000)
20070322154251
-65035-
cdb6651e61c2eb0205cc8c24693b43f98a2da718
.gz
gst/rtpmanager/gstrtpmux.c
patch
|
blob
|
history
diff --git
a/gst/rtpmanager/gstrtpmux.c
b/gst/rtpmanager/gstrtpmux.c
index 1eb7974301f532e6c4b59ca142d80b01b6410e36..5b18fb42cfe99c8d9d9cee3f099ca7d6d2cdfaed 100644
(file)
--- a/
gst/rtpmanager/gstrtpmux.c
+++ b/
gst/rtpmanager/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;
}