⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 269031 in webkit


Ignore:
Timestamp:
Oct 27, 2020, 4:40:56 AM (6 years ago)
Author:
calvaris@igalia.com
Message:

[EME][GStreamer] Fix logging in utilities
​https://bugs.webkit.org/show_bug.cgi?id=218174

Reviewed by Philippe Normand.

There is some logging in GStreamerEMEUtilities.h that was not
using debugging categories properly. It does now.

  • platform/graphics/gstreamer/eme/GStreamerEMEUtilities.h:

(WebCore::InitData::InitData):

  • platform/graphics/gstreamer/eme/WebKitCommonEncryptionDecryptorGStreamer.cpp:
Location:
trunk/Source/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r269030 r269031  
     12020-10-27  Xabier Rodriguez Calvar  <calvaris@igalia.com>
     2
     3        [EME][GStreamer] Fix logging in utilities
     4        https://bugs.webkit.org/show_bug.cgi?id=218174
     5
     6        Reviewed by Philippe Normand.
     7
     8        There is some logging in GStreamerEMEUtilities.h that was not
     9        using debugging categories properly. It does now.
     10
     11        * platform/graphics/gstreamer/eme/GStreamerEMEUtilities.h:
     12        (WebCore::InitData::InitData):
     13        * platform/graphics/gstreamer/eme/WebKitCommonEncryptionDecryptorGStreamer.cpp:
     14
    1152020-10-27  Xabier Rodriguez Calvar  <calvaris@igalia.com>
    216
  • trunk/Source/WebCore/platform/graphics/gstreamer/eme/GStreamerEMEUtilities.h

    r264762 r269031  
    3434#endif
    3535
     36GST_DEBUG_CATEGORY_EXTERN(webkit_media_common_encryption_decrypt_debug_category);
     37
    3638namespace WebCore {
    3739class InitData {
    … …  
    4648        auto mappedInitData = GstMappedOwnedBuffer::create(initData);
    4749        if (!mappedInitData) {
    48             GST_ERROR("cannot map %s protection data", systemId.utf8().data());
     50            GST_CAT_LEVEL_LOG(webkit_media_common_encryption_decrypt_debug_category, GST_LEVEL_ERROR, nullptr, "cannot map %s protection data", systemId.utf8().data());
    4951            ASSERT_NOT_REACHED();
    5052        }
  • trunk/Source/WebCore/platform/graphics/gstreamer/eme/WebKitCommonEncryptionDecryptorGStreamer.cpp

    r268977 r269031  
    5454static void setContext(GstElement*, GstContext*);
    5555
    56 GST_DEBUG_CATEGORY_STATIC(webkit_media_common_encryption_decrypt_debug_category);
     56GST_DEBUG_CATEGORY(webkit_media_common_encryption_decrypt_debug_category);
    5757#define GST_CAT_DEFAULT webkit_media_common_encryption_decrypt_debug_category
    5858
Note: See TracChangeset for help on using the changeset viewer.