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

Changeset 244074 in webkit


Ignore:
Timestamp:
Apr 9, 2019, 3:21:03 AM (7 years ago)
Author:
commit-queue@webkit.org
Message:

Initialize trackTypeAsString for call to GST_INFO_OBJECT() in TrackType::Text
https://bugs.webkit.org/show_bug.cgi?id=196350

Patch by Eike Rathke <erack@redhat.com> on 2019-04-09
Reviewed by Xabier Rodriguez-Calvar.

trackTypeAsString was uninitialized in the
TrackPrivateBaseGStreamer::TrackType::Text case when calling
GST_INFO_OBJECT().

  • platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:

(WebCore::MediaPlayerPrivateGStreamer::enableTrack):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r244072 r244074  
     12019-04-09  Eike Rathke  <erack@redhat.com>
     2
     3        Initialize trackTypeAsString for call to GST_INFO_OBJECT() in TrackType::Text
     4        https://bugs.webkit.org/show_bug.cgi?id=196350
     5
     6        Reviewed by Xabier Rodriguez-Calvar.
     7
     8        trackTypeAsString was uninitialized in the
     9        TrackPrivateBaseGStreamer::TrackType::Text case when calling
     10        GST_INFO_OBJECT().
     11
     12        * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp:
     13        (WebCore::MediaPlayerPrivateGStreamer::enableTrack):
     14
    1152019-04-09  Carlos Garcia Campos  <cgarcia@igalia.com>
    216
  • trunk/Source/WebCore/platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp

    r243644 r244074  
    814814        break;
    815815    case TrackPrivateBaseGStreamer::TrackType::Text:
     816        propertyName = "current-text";
     817        trackTypeAsString = "text";
    816818        if (!selectedStreamId.isEmpty() && selectedStreamId == m_currentTextStreamId) {
    817819            GST_INFO_OBJECT(pipeline(), "%s stream: %s already selected, not doing anything.", trackTypeAsString, selectedStreamId.utf8().data());
     
    819821        }
    820822
    821         propertyName = "current-text";
    822         trackTypeAsString = "text";
    823823        if (!m_currentAudioStreamId.isEmpty())
    824824            selectedStreams.append(m_currentAudioStreamId);
Note: See TracChangeset for help on using the changeset viewer.