Move the RTMP_Connect call from the main thread (::start) to the streaming thread (::render).
rtmpsrc: This plugin requires librtmp from http://rtmpdump.mplayerhq.hu/ You have to build librtmp with -fPIC to be able to use it with the GStreamer plugin: make XCFLAGS="-fPIC"