Changeset 176322 in webkit


Ignore:
Timestamp:
Nov 19, 2014 9:52:58 AM (9 years ago)
Author:
Philippe Normand
Message:

Missing NULL-check in VideoTrack::setLanguage
https://bugs.webkit.org/show_bug.cgi?id=138867

Reviewed by Jer Noble.

  • html/track/VideoTrack.cpp:

(WebCore::VideoTrack::setLanguage): Prevent change event creation
on an empty video track list.

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r176321 r176322  
     12014-11-19  Philippe Normand  <pnormand@igalia.com>
     2
     3        Missing NULL-check in VideoTrack::setLanguage
     4        https://bugs.webkit.org/show_bug.cgi?id=138867
     5
     6        Reviewed by Jer Noble.
     7
     8        * html/track/VideoTrack.cpp:
     9        (WebCore::VideoTrack::setLanguage): Prevent change event creation
     10        on an empty video track list.
     11
    1122014-11-19  Chris Fleizach  <cfleizach@apple.com>
    213
  • trunk/Source/WebCore/html/track/VideoTrack.cpp

    r167440 r176322  
    218218    // 4. Queue a task to fire a simple event named change at the VideoTrackList object referenced by
    219219    // the videoTracks attribute on the HTMLMediaElement.
    220     mediaElement()->videoTracks()->scheduleChangeEvent();
     220    if (mediaElement()->videoTracks())
     221        mediaElement()->videoTracks()->scheduleChangeEvent();
    221222}
    222223#endif
Note: See TracChangeset for help on using the changeset viewer.