1 diff -Naur org/ext/rtmp/gstrtmpsrc.c git/ext/rtmp/gstrtmpsrc.c
2 --- org/ext/rtmp/gstrtmpsrc.c 2013-07-16 17:17:38.000000000 +0200
3 +++ git/ext/rtmp/gstrtmpsrc.c 2013-07-16 17:20:56.154789765 +0200
8 -#include <sys/socket.h>
10 GST_DEBUG_CATEGORY_STATIC (rtmpsrc_debug);
11 #define GST_CAT_DEFAULT rtmpsrc_debug
14 GValue * value, GParamSpec * pspec);
15 static void gst_rtmp_src_finalize (GObject * object);
17 -static gboolean gst_rtmp_src_unlock (GstBaseSrc * src);
18 static gboolean gst_rtmp_src_stop (GstBaseSrc * src);
19 static gboolean gst_rtmp_src_start (GstBaseSrc * src);
20 static gboolean gst_rtmp_src_is_seekable (GstBaseSrc * src);
23 gstbasesrc_class->start = GST_DEBUG_FUNCPTR (gst_rtmp_src_start);
24 gstbasesrc_class->stop = GST_DEBUG_FUNCPTR (gst_rtmp_src_stop);
25 - gstbasesrc_class->unlock = GST_DEBUG_FUNCPTR (gst_rtmp_src_unlock);
26 gstbasesrc_class->is_seekable = GST_DEBUG_FUNCPTR (gst_rtmp_src_is_seekable);
27 gstbasesrc_class->prepare_seek_segment =
28 GST_DEBUG_FUNCPTR (gst_rtmp_src_prepare_seek_segment);
33 -gst_rtmp_src_unlock (GstBaseSrc * basesrc)
35 - GstRTMPSrc *rtmpsrc = GST_RTMP_SRC (basesrc);
37 - GST_DEBUG_OBJECT (rtmpsrc, "unlock");
39 - /* This cancels the recv() underlying RTMP_Read, but will cause a
40 - * SIGPIPE. Hopefully the app is ignoring it, or you've patched
42 - if (rtmpsrc->rtmp && rtmpsrc->rtmp->m_sb.sb_socket > 0) {
43 - shutdown (rtmpsrc->rtmp->m_sb.sb_socket, SHUT_RDWR);
51 gst_rtmp_src_stop (GstBaseSrc * basesrc)