Title: [212285] trunk/Source/WebCore
- Revision
- 212285
- Author
- [email protected]
- Date
- 2017-02-14 03:30:46 -0800 (Tue, 14 Feb 2017)
Log Message
[GStreamer][MSE] Some GStreamer log messages are generated with the 'default' category
https://bugs.webkit.org/show_bug.cgi?id=168015
Patch by Vanessa Chipirrás Navalón <[email protected]> on 2017-02-14
Reviewed by Xabier Rodriguez-Calvar.
The elements AppendPipeline, PlaybackPipeline, MediaSourceClientGstreamerMSE do not have
a defined Gstreamer log category, then the webkitmse category has been added to them.
WebKitMediaSourceGstreamer has its own category but was not declared at the beginning of
the .cpp file.
* platform/graphics/gstreamer/mse/AppendPipeline.cpp: Added webkitmse category.
* platform/graphics/gstreamer/mse/MediaSourceClientGStreamerMSE.cpp:
Added webkitmse category and gst header.
* platform/graphics/gstreamer/mse/PlaybackPipeline.cpp: Added webkitmse category.
* platform/graphics/gstreamer/mse/WebKitMediaSourceGStreamer.cpp:
Added webkitmediasrc category.
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (212284 => 212285)
--- trunk/Source/WebCore/ChangeLog 2017-02-14 10:50:32 UTC (rev 212284)
+++ trunk/Source/WebCore/ChangeLog 2017-02-14 11:30:46 UTC (rev 212285)
@@ -1,3 +1,22 @@
+2017-02-14 Vanessa Chipirrás Navalón <[email protected]>
+
+ [GStreamer][MSE] Some GStreamer log messages are generated with the 'default' category
+ https://bugs.webkit.org/show_bug.cgi?id=168015
+
+ Reviewed by Xabier Rodriguez-Calvar.
+
+ The elements AppendPipeline, PlaybackPipeline, MediaSourceClientGstreamerMSE do not have
+ a defined Gstreamer log category, then the webkitmse category has been added to them.
+ WebKitMediaSourceGstreamer has its own category but was not declared at the beginning of
+ the .cpp file.
+
+ * platform/graphics/gstreamer/mse/AppendPipeline.cpp: Added webkitmse category.
+ * platform/graphics/gstreamer/mse/MediaSourceClientGStreamerMSE.cpp:
+ Added webkitmse category and gst header.
+ * platform/graphics/gstreamer/mse/PlaybackPipeline.cpp: Added webkitmse category.
+ * platform/graphics/gstreamer/mse/WebKitMediaSourceGStreamer.cpp:
+ Added webkitmediasrc category.
+
2017-02-14 Carlos Garcia Campos <[email protected]>
CookieManager only works with the default session
Modified: trunk/Source/WebCore/platform/graphics/gstreamer/mse/AppendPipeline.cpp (212284 => 212285)
--- trunk/Source/WebCore/platform/graphics/gstreamer/mse/AppendPipeline.cpp 2017-02-14 10:50:32 UTC (rev 212284)
+++ trunk/Source/WebCore/platform/graphics/gstreamer/mse/AppendPipeline.cpp 2017-02-14 11:30:46 UTC (rev 212285)
@@ -41,6 +41,9 @@
#include <wtf/Condition.h>
#include <wtf/glib/GLibUtilities.h>
+GST_DEBUG_CATEGORY_EXTERN(webkit_mse_debug);
+#define GST_CAT_DEFAULT webkit_mse_debug
+
namespace WebCore {
static const char* dumpAppendState(AppendPipeline::AppendState appendState)
Modified: trunk/Source/WebCore/platform/graphics/gstreamer/mse/MediaSourceClientGStreamerMSE.cpp (212284 => 212285)
--- trunk/Source/WebCore/platform/graphics/gstreamer/mse/MediaSourceClientGStreamerMSE.cpp 2017-02-14 10:50:32 UTC (rev 212284)
+++ trunk/Source/WebCore/platform/graphics/gstreamer/mse/MediaSourceClientGStreamerMSE.cpp 2017-02-14 11:30:46 UTC (rev 212285)
@@ -24,7 +24,11 @@
#include "AppendPipeline.h"
#include "MediaPlayerPrivateGStreamerMSE.h"
#include "WebKitMediaSourceGStreamer.h"
+#include <gst/gst.h>
+GST_DEBUG_CATEGORY_EXTERN(webkit_mse_debug);
+#define GST_CAT_DEFAULT webkit_mse_debug
+
#if ENABLE(VIDEO) && USE(GSTREAMER) && ENABLE(MEDIA_SOURCE)
namespace WebCore {
Modified: trunk/Source/WebCore/platform/graphics/gstreamer/mse/PlaybackPipeline.cpp (212284 => 212285)
--- trunk/Source/WebCore/platform/graphics/gstreamer/mse/PlaybackPipeline.cpp 2017-02-14 10:50:32 UTC (rev 212284)
+++ trunk/Source/WebCore/platform/graphics/gstreamer/mse/PlaybackPipeline.cpp 2017-02-14 11:30:46 UTC (rev 212285)
@@ -40,6 +40,9 @@
#include <wtf/glib/GUniquePtr.h>
#include <wtf/text/AtomicString.h>
+GST_DEBUG_CATEGORY_EXTERN(webkit_mse_debug);
+#define GST_CAT_DEFAULT webkit_mse_debug
+
static Stream* getStreamByTrackId(WebKitMediaSrc*, AtomicString);
static Stream* getStreamBySourceBufferPrivate(WebKitMediaSrc*, WebCore::SourceBufferPrivateGStreamer*);
Modified: trunk/Source/WebCore/platform/graphics/gstreamer/mse/WebKitMediaSourceGStreamer.cpp (212284 => 212285)
--- trunk/Source/WebCore/platform/graphics/gstreamer/mse/WebKitMediaSourceGStreamer.cpp 2017-02-14 10:50:32 UTC (rev 212284)
+++ trunk/Source/WebCore/platform/graphics/gstreamer/mse/WebKitMediaSourceGStreamer.cpp 2017-02-14 11:30:46 UTC (rev 212285)
@@ -52,6 +52,12 @@
#include <wtf/glib/GUniquePtr.h>
#include <wtf/text/CString.h>
+GST_DEBUG_CATEGORY_STATIC(webkit_media_src_debug);
+#define GST_CAT_DEFAULT webkit_media_src_debug
+
+#define webkit_media_src_parent_class parent_class
+#define WEBKIT_MEDIA_SRC_CATEGORY_INIT GST_DEBUG_CATEGORY_INIT(webkit_media_src_debug, "webkitmediasrc", 0, "websrc element");
+
static GstStaticPadTemplate srcTemplate = GST_STATIC_PAD_TEMPLATE("src_%u", GST_PAD_SRC,
GST_PAD_SOMETIMES, GST_STATIC_CAPS_ANY);
@@ -186,11 +192,6 @@
return nullptr;
}
-GST_DEBUG_CATEGORY_STATIC(webkit_media_src_debug);
-#define GST_CAT_DEFAULT webkit_media_src_debug
-
-#define webkit_media_src_parent_class parent_class
-#define WEBKIT_MEDIA_SRC_CATEGORY_INIT GST_DEBUG_CATEGORY_INIT(webkit_media_src_debug, "webkitmediasrc", 0, "websrc element");
G_DEFINE_TYPE_WITH_CODE(WebKitMediaSrc, webkit_media_src, GST_TYPE_BIN,
G_IMPLEMENT_INTERFACE(GST_TYPE_URI_HANDLER, webKitMediaSrcUriHandlerInit);
WEBKIT_MEDIA_SRC_CATEGORY_INIT);
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes