use fixed SRCREV 1e99787f3387d3dd1e6167af73597674bf8fe37d.
[vuplus_openvuplus_3.0] / meta-openvuplus / recipes-multimedia / gstreamer / gst-plugins-bad-0.10.23 / 0007-revert-rtmp-change.patch
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
4 @@ -57,8 +57,6 @@
5  #include <winsock2.h>
6  #endif
7  
8 -#include <sys/socket.h>
9 -
10  GST_DEBUG_CATEGORY_STATIC (rtmpsrc_debug);
11  #define GST_CAT_DEFAULT rtmpsrc_debug
12  
13 @@ -84,7 +82,6 @@
14      GValue * value, GParamSpec * pspec);
15  static void gst_rtmp_src_finalize (GObject * object);
16  
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);
21 @@ -148,7 +145,6 @@
22  
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);
29 @@ -584,24 +580,6 @@
30  #undef STR2AVAL
31  
32  static gboolean
33 -gst_rtmp_src_unlock (GstBaseSrc * basesrc)
34 -{
35 -  GstRTMPSrc *rtmpsrc = GST_RTMP_SRC (basesrc);
36 -
37 -  GST_DEBUG_OBJECT (rtmpsrc, "unlock");
38 -
39 -  /* This cancels the recv() underlying RTMP_Read, but will cause a
40 -   * SIGPIPE.  Hopefully the app is ignoring it, or you've patched
41 -   * librtmp. */
42 -  if (rtmpsrc->rtmp && rtmpsrc->rtmp->m_sb.sb_socket > 0) {
43 -    shutdown (rtmpsrc->rtmp->m_sb.sb_socket, SHUT_RDWR);
44 -  }
45 -
46 -  return TRUE;
47 -}
48 -
49 -
50 -static gboolean
51  gst_rtmp_src_stop (GstBaseSrc * basesrc)
52  {
53    GstRTMPSrc *src;