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

Changeset 245948 in webkit


Ignore:
Timestamp:
May 30, 2019, 9:57:06 PM (7 years ago)
Author:
youenn@apple.com
Message:

Fix AVVideoCaptureSource::setFrameRateWithPreset logging
https://bugs.webkit.org/show_bug.cgi?id=198392

Reviewed by Eric Carlson.

Move logging from setFrameRateWithPreset to setSessionSizeAndFrameRate which does the actual job.
This ensures to not log in case of preset being null.
No change of behavior.

  • platform/mediastream/mac/AVVideoCaptureSource.mm:

(WebCore::AVVideoCaptureSource::setFrameRateWithPreset):
(WebCore::AVVideoCaptureSource::setSessionSizeAndFrameRate):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r245947 r245948  
     12019-05-30  Youenn Fablet  <youenn@apple.com>
     2
     3        Fix AVVideoCaptureSource::setFrameRateWithPreset logging
     4        https://bugs.webkit.org/show_bug.cgi?id=198392
     5
     6        Reviewed by Eric Carlson.
     7
     8        Move logging from setFrameRateWithPreset to setSessionSizeAndFrameRate which does the actual job.
     9        This ensures to not log in case of preset being null.
     10        No change of behavior.
     11
     12        * platform/mediastream/mac/AVVideoCaptureSource.mm:
     13        (WebCore::AVVideoCaptureSource::setFrameRateWithPreset):
     14        (WebCore::AVVideoCaptureSource::setSessionSizeAndFrameRate):
     15
    1162019-05-30  Jer Noble  <jer.noble@apple.com>
    217
  • trunk/Source/WebCore/platform/mediastream/mac/AVVideoCaptureSource.mm

    r245478 r245948  
    286286void AVVideoCaptureSource::setFrameRateWithPreset(double requestedFrameRate, RefPtr<VideoPreset> preset)
    287287{
    288     ALWAYS_LOG_IF(loggerPtr(), LOGIDENTIFIER, SizeAndFrameRate { preset->size.width(), preset->size.height(), requestedFrameRate });
    289 
    290288    auto* avPreset = preset ? downcast<AVVideoPreset>(preset.get()) : nullptr;
    291289    m_currentPreset = avPreset;
     
    303301    if (!avPreset)
    304302        return;
     303
     304    ALWAYS_LOG_IF(loggerPtr(), LOGIDENTIFIER, SizeAndFrameRate { m_currentPreset->size.width(), m_currentPreset->size.height(), m_currentFrameRate });
    305305
    306306    ASSERT(avPreset->format);
Note: See TracChangeset for help on using the changeset viewer.