summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim.muller@collabora.co.uk>2009-04-01 12:26:12 +0100
committerTim-Philipp Müller <tim.muller@collabora.co.uk>2009-04-01 12:29:33 +0100
commitcb15d09c4af37c2d8af80c7e9e0133875a0d4170 (patch)
tree4dbb5745126db18c7cd6d6998be00c6014504727
parentb037369d5b4547c3dd2d501c3751e5990d01a4f9 (diff)
rtspsrc: don't emit ugly warnings with older rtpjitterbuffer versions
The on-npt-stop signals was added only recently to rtpjitterbuffer in -bad, so check if the signal exists before g_signal_connect()ing to it, to avoid warnings.
-rw-r--r--gst/rtsp/gstrtspsrc.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/gst/rtsp/gstrtspsrc.c b/gst/rtsp/gstrtspsrc.c
index 667211a33..262d4b9dd 100644
--- a/gst/rtsp/gstrtspsrc.c
+++ b/gst/rtsp/gstrtspsrc.c
@@ -1948,8 +1948,13 @@ gst_rtspsrc_stream_configure_manager (GstRTSPSrc * src, GstRTSPStream * stream,
src);
g_signal_connect (src->session, "on-timeout", (GCallback) on_timeout,
src);
- g_signal_connect (src->session, "on-npt-stop", (GCallback) on_npt_stop,
- src);
+ /* FIXME: remove this once the rtpjitterbuffer is in -good */
+ if (g_signal_lookup ("on-npt-stop", G_OBJECT_TYPE (src->session)) != 0) {
+ g_signal_connect (src->session, "on-npt-stop", (GCallback) on_npt_stop,
+ src);
+ } else {
+ GST_INFO_OBJECT (src, "skipping on-npt-stop handling, not implemented");
+ }
}
/* we stream directly to the manager, get some pads. Each RTSP stream goes