webkitgtk-2.4.8-gmutexlocker.patch 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282
  1. diff -up webkitgtk-2.4.8/Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamerBase.cpp.gmutexlocker webkitgtk-2.4.8/Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamerBase.cpp
  2. --- webkitgtk-2.4.8/Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamerBase.cpp.gmutexlocker 2015-02-18 15:40:21.851816374 +0100
  3. +++ Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamerBase.cpp 2015-02-18 15:45:58.560092191 +0100
  4. @@ -316,7 +316,7 @@ void MediaPlayerPrivateGStreamerBase::mu
  5. #if USE(ACCELERATED_COMPOSITING) && USE(TEXTURE_MAPPER_GL) && !USE(COORDINATED_GRAPHICS)
  6. PassRefPtr<BitmapTexture> MediaPlayerPrivateGStreamerBase::updateTexture(TextureMapper* textureMapper)
  7. {
  8. - GMutexLocker lock(m_bufferMutex);
  9. + WebCore::GMutexLocker lock(m_bufferMutex);
  10. if (!m_buffer)
  11. return nullptr;
  12. @@ -366,7 +366,7 @@ void MediaPlayerPrivateGStreamerBase::tr
  13. g_return_if_fail(GST_IS_BUFFER(buffer));
  14. {
  15. - GMutexLocker lock(m_bufferMutex);
  16. + WebCore::GMutexLocker lock(m_bufferMutex);
  17. gst_buffer_replace(&m_buffer, buffer);
  18. }
  19. @@ -398,7 +398,7 @@ void MediaPlayerPrivateGStreamerBase::pa
  20. if (!m_player->visible())
  21. return;
  22. - GMutexLocker lock(m_bufferMutex);
  23. + WebCore::GMutexLocker lock(m_bufferMutex);
  24. if (!m_buffer)
  25. return;
  26. diff -up webkitgtk-2.4.8/Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp.gmutexlocker webkitgtk-2.4.8/Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp
  27. diff -up webkitgtk-2.4.8/Source/WebCore/platform/graphics/gstreamer/VideoSinkGStreamer.cpp.gmutexlocker webkitgtk-2.4.8/Source/WebCore/platform/graphics/gstreamer/VideoSinkGStreamer.cpp
  28. --- webkitgtk-2.4.8/Source/WebCore/platform/graphics/gstreamer/VideoSinkGStreamer.cpp.gmutexlocker 2015-02-18 15:16:11.995228731 +0100
  29. +++ Source/WebCore/platform/graphics/gstreamer/VideoSinkGStreamer.cpp 2015-02-18 15:45:42.686843477 +0100
  30. @@ -118,7 +118,7 @@ static gboolean webkitVideoSinkTimeoutCa
  31. WebKitVideoSink* sink = reinterpret_cast<WebKitVideoSink*>(data);
  32. WebKitVideoSinkPrivate* priv = sink->priv;
  33. - GMutexLocker lock(priv->bufferMutex);
  34. + WebCore::GMutexLocker lock(priv->bufferMutex);
  35. GstBuffer* buffer = priv->buffer;
  36. priv->buffer = 0;
  37. priv->timeoutId = 0;
  38. @@ -140,7 +140,7 @@ static GstFlowReturn webkitVideoSinkRend
  39. WebKitVideoSink* sink = WEBKIT_VIDEO_SINK(baseSink);
  40. WebKitVideoSinkPrivate* priv = sink->priv;
  41. - GMutexLocker lock(priv->bufferMutex);
  42. + WebCore::GMutexLocker lock(priv->bufferMutex);
  43. if (priv->unlocked)
  44. return GST_FLOW_OK;
  45. @@ -279,7 +279,7 @@ static void webkitVideoSinkGetProperty(G
  46. static void unlockBufferMutex(WebKitVideoSinkPrivate* priv)
  47. {
  48. - GMutexLocker lock(priv->bufferMutex);
  49. + WebCore::GMutexLocker lock(priv->bufferMutex);
  50. if (priv->buffer) {
  51. gst_buffer_unref(priv->buffer);
  52. @@ -305,7 +305,7 @@ static gboolean webkitVideoSinkUnlockSto
  53. WebKitVideoSinkPrivate* priv = WEBKIT_VIDEO_SINK(baseSink)->priv;
  54. {
  55. - GMutexLocker lock(priv->bufferMutex);
  56. + WebCore::GMutexLocker lock(priv->bufferMutex);
  57. priv->unlocked = false;
  58. }
  59. @@ -330,7 +330,7 @@ static gboolean webkitVideoSinkStart(Gst
  60. {
  61. WebKitVideoSinkPrivate* priv = WEBKIT_VIDEO_SINK(baseSink)->priv;
  62. - GMutexLocker lock(priv->bufferMutex);
  63. + WebCore::GMutexLocker lock(priv->bufferMutex);
  64. priv->unlocked = false;
  65. return TRUE;
  66. }
  67. diff -up webkitgtk-2.4.8/Source/WebCore/platform/graphics/gstreamer/WebKitWebSourceGStreamer.cpp.gmutexlocker webkitgtk-2.4.8/Source/WebCore/platform/graphics/gstreamer/WebKitWebSourceGStreamer.cpp
  68. --- webkitgtk-2.4.8/Source/WebCore/platform/graphics/gstreamer/WebKitWebSourceGStreamer.cpp.gmutexlocker 2015-02-18 15:16:40.954678407 +0100
  69. +++ Source/WebCore/platform/graphics/gstreamer/WebKitWebSourceGStreamer.cpp 2015-02-18 15:45:19.567481225 +0100
  70. @@ -346,7 +346,7 @@ static void webKitWebSrcSetProperty(GObj
  71. switch (propID) {
  72. case PROP_IRADIO_MODE: {
  73. - GMutexLocker locker(GST_OBJECT_GET_LOCK(src));
  74. + WebCore::GMutexLocker locker(GST_OBJECT_GET_LOCK(src));
  75. priv->iradioMode = g_value_get_boolean(value);
  76. break;
  77. }
  78. @@ -364,7 +364,7 @@ static void webKitWebSrcGetProperty(GObj
  79. WebKitWebSrc* src = WEBKIT_WEB_SRC(object);
  80. WebKitWebSrcPrivate* priv = src->priv;
  81. - GMutexLocker locker(GST_OBJECT_GET_LOCK(src));
  82. + WebCore::GMutexLocker locker(GST_OBJECT_GET_LOCK(src));
  83. switch (propID) {
  84. case PROP_IRADIO_MODE:
  85. g_value_set_boolean(value, priv->iradioMode);
  86. @@ -417,7 +417,7 @@ static gboolean webKitWebSrcStop(WebKitW
  87. ASSERT(isMainThread());
  88. - GMutexLocker locker(GST_OBJECT_GET_LOCK(src));
  89. + WebCore::GMutexLocker locker(GST_OBJECT_GET_LOCK(src));
  90. bool seeking = priv->seekID;
  91. @@ -476,7 +476,7 @@ static gboolean webKitWebSrcStart(WebKit
  92. ASSERT(isMainThread());
  93. - GMutexLocker locker(GST_OBJECT_GET_LOCK(src));
  94. + WebCore::GMutexLocker locker(GST_OBJECT_GET_LOCK(src));
  95. priv->startID = 0;
  96. priv->corsAccessCheck = CORSNoCheck;
  97. @@ -573,7 +573,7 @@ static GstStateChangeReturn webKitWebSrc
  98. return ret;
  99. }
  100. - GMutexLocker locker(GST_OBJECT_GET_LOCK(src));
  101. + WebCore::GMutexLocker locker(GST_OBJECT_GET_LOCK(src));
  102. switch (transition) {
  103. case GST_STATE_CHANGE_READY_TO_PAUSED:
  104. GST_DEBUG_OBJECT(src, "READY->PAUSED");
  105. @@ -604,7 +604,7 @@ static gboolean webKitWebSrcQueryWithPar
  106. gst_query_parse_duration(query, &format, NULL);
  107. GST_DEBUG_OBJECT(src, "duration query in format %s", gst_format_get_name(format));
  108. - GMutexLocker locker(GST_OBJECT_GET_LOCK(src));
  109. + WebCore::GMutexLocker locker(GST_OBJECT_GET_LOCK(src));
  110. if (format == GST_FORMAT_BYTES && src->priv->size > 0) {
  111. gst_query_set_duration(query, format, src->priv->size);
  112. result = TRUE;
  113. @@ -612,7 +612,7 @@ static gboolean webKitWebSrcQueryWithPar
  114. break;
  115. }
  116. case GST_QUERY_URI: {
  117. - GMutexLocker locker(GST_OBJECT_GET_LOCK(src));
  118. + WebCore::GMutexLocker locker(GST_OBJECT_GET_LOCK(src));
  119. gst_query_set_uri(query, src->priv->uri);
  120. result = TRUE;
  121. break;
  122. @@ -653,7 +653,7 @@ static gchar* webKitWebSrcGetUri(GstURIH
  123. WebKitWebSrc* src = WEBKIT_WEB_SRC(handler);
  124. gchar* ret;
  125. - GMutexLocker locker(GST_OBJECT_GET_LOCK(src));
  126. + WebCore::GMutexLocker locker(GST_OBJECT_GET_LOCK(src));
  127. ret = g_strdup(src->priv->uri);
  128. return ret;
  129. }
  130. @@ -668,7 +668,7 @@ static gboolean webKitWebSrcSetUri(GstUR
  131. return FALSE;
  132. }
  133. - GMutexLocker locker(GST_OBJECT_GET_LOCK(src));
  134. + WebCore::GMutexLocker locker(GST_OBJECT_GET_LOCK(src));
  135. g_free(priv->uri);
  136. priv->uri = 0;
  137. @@ -704,7 +704,7 @@ static gboolean webKitWebSrcNeedDataMain
  138. ASSERT(isMainThread());
  139. - GMutexLocker locker(GST_OBJECT_GET_LOCK(src));
  140. + WebCore::GMutexLocker locker(GST_OBJECT_GET_LOCK(src));
  141. // already stopped
  142. if (!priv->needDataID)
  143. return FALSE;
  144. @@ -725,7 +725,7 @@ static void webKitWebSrcNeedDataCb(GstAp
  145. GST_DEBUG_OBJECT(src, "Need more data: %u", length);
  146. - GMutexLocker locker(GST_OBJECT_GET_LOCK(src));
  147. + WebCore::GMutexLocker locker(GST_OBJECT_GET_LOCK(src));
  148. if (priv->needDataID || !priv->paused) {
  149. return;
  150. }
  151. @@ -739,7 +739,7 @@ static gboolean webKitWebSrcEnoughDataMa
  152. ASSERT(isMainThread());
  153. - GMutexLocker locker(GST_OBJECT_GET_LOCK(src));
  154. + WebCore::GMutexLocker locker(GST_OBJECT_GET_LOCK(src));
  155. // already stopped
  156. if (!priv->enoughDataID)
  157. return FALSE;
  158. @@ -760,7 +760,7 @@ static void webKitWebSrcEnoughDataCb(Gst
  159. GST_DEBUG_OBJECT(src, "Have enough data");
  160. - GMutexLocker locker(GST_OBJECT_GET_LOCK(src));
  161. + WebCore::GMutexLocker locker(GST_OBJECT_GET_LOCK(src));
  162. if (priv->enoughDataID || priv->paused) {
  163. return;
  164. }
  165. @@ -774,7 +774,7 @@ static gboolean webKitWebSrcSeekMainCb(W
  166. ASSERT(isMainThread());
  167. - GMutexLocker locker(GST_OBJECT_GET_LOCK(src));
  168. + WebCore::GMutexLocker locker(GST_OBJECT_GET_LOCK(src));
  169. // already stopped
  170. if (!priv->seekID)
  171. return FALSE;
  172. @@ -792,7 +792,7 @@ static gboolean webKitWebSrcSeekDataCb(G
  173. WebKitWebSrcPrivate* priv = src->priv;
  174. GST_DEBUG_OBJECT(src, "Seeking to offset: %" G_GUINT64_FORMAT, offset);
  175. - GMutexLocker locker(GST_OBJECT_GET_LOCK(src));
  176. + WebCore::GMutexLocker locker(GST_OBJECT_GET_LOCK(src));
  177. if (offset == priv->offset && priv->requestedOffset == priv->offset)
  178. return TRUE;
  179. @@ -811,7 +811,7 @@ static gboolean webKitWebSrcSeekDataCb(G
  180. void webKitWebSrcSetMediaPlayer(WebKitWebSrc* src, WebCore::MediaPlayer* player)
  181. {
  182. ASSERT(player);
  183. - GMutexLocker locker(GST_OBJECT_GET_LOCK(src));
  184. + WebCore::GMutexLocker locker(GST_OBJECT_GET_LOCK(src));
  185. src->priv->player = player;
  186. }
  187. @@ -841,7 +841,7 @@ char* StreamingClient::createReadBuffer(
  188. mapGstBuffer(buffer);
  189. - GMutexLocker locker(GST_OBJECT_GET_LOCK(src));
  190. + WebCore::GMutexLocker locker(GST_OBJECT_GET_LOCK(src));
  191. priv->buffer = adoptGRef(buffer);
  192. locker.unlock();
  193. @@ -867,7 +867,7 @@ void StreamingClient::handleResponseRece
  194. return;
  195. }
  196. - GMutexLocker locker(GST_OBJECT_GET_LOCK(src));
  197. + WebCore::GMutexLocker locker(GST_OBJECT_GET_LOCK(src));
  198. priv->corsAccessCheck = corsAccessCheck;
  199. @@ -966,7 +966,7 @@ void StreamingClient::handleDataReceived
  200. WebKitWebSrc* src = WEBKIT_WEB_SRC(m_src);
  201. WebKitWebSrcPrivate* priv = src->priv;
  202. - GMutexLocker locker(GST_OBJECT_GET_LOCK(src));
  203. + WebCore::GMutexLocker locker(GST_OBJECT_GET_LOCK(src));
  204. GST_LOG_OBJECT(src, "Have %lld bytes of data", priv->buffer ? static_cast<long long>(gst_buffer_get_size(priv->buffer.get())) : length);
  205. @@ -1035,7 +1035,7 @@ void StreamingClient::handleNotifyFinish
  206. GST_DEBUG_OBJECT(src, "Have EOS");
  207. - GMutexLocker locker(GST_OBJECT_GET_LOCK(src));
  208. + WebCore::GMutexLocker locker(GST_OBJECT_GET_LOCK(src));
  209. if (!priv->seekID) {
  210. locker.unlock();
  211. gst_app_src_end_of_stream(priv->appsrc);
  212. @@ -1194,7 +1194,7 @@ void ResourceHandleStreamingClient::wasB
  213. GST_ERROR_OBJECT(src, "Request was blocked");
  214. - GMutexLocker locker(GST_OBJECT_GET_LOCK(src));
  215. + WebCore::GMutexLocker locker(GST_OBJECT_GET_LOCK(src));
  216. uri.reset(g_strdup(src->priv->uri));
  217. locker.unlock();
  218. @@ -1208,7 +1208,7 @@ void ResourceHandleStreamingClient::cann
  219. GST_ERROR_OBJECT(src, "Cannot show URL");
  220. - GMutexLocker locker(GST_OBJECT_GET_LOCK(src));
  221. + WebCore::GMutexLocker locker(GST_OBJECT_GET_LOCK(src));
  222. uri.reset(g_strdup(src->priv->uri));
  223. locker.unlock();
  224. diff -up webkitgtk-2.4.8/Source/WTF/wtf/gobject/GMutexLocker.h.gmutexlocker webkitgtk-2.4.8/Source/WTF/wtf/gobject/GMutexLocker.h