Changeset 230910 in webkit


Ignore:
Timestamp:
Apr 23, 2018 6:39:53 AM (6 years ago)
Author:
commit-queue@webkit.org
Message:

[GStreamer] Start implementing Audio/VideoTrackPrivateGSTreamer::kind method
https://bugs.webkit.org/show_bug.cgi?id=184650

Patch by Thibault Saunier <tsaunier@igalia.com> on 2018-04-23
Reviewed by Philippe Normand.

In the playbin3 case we can assume that if the GstStream is selected by default,
it is the Main track of that kind.

No new tests are added as:

  • It relies on playbin3 case which support might be compiled out
  • we already have a few test that are currently disabled in the mediastream testsuite. This patch is part of the work to enable them.
  • platform/graphics/gstreamer/AudioTrackPrivateGStreamer.cpp:

(WebCore::AudioTrackPrivateGStreamer::kind const):

  • platform/graphics/gstreamer/AudioTrackPrivateGStreamer.h:
  • platform/graphics/gstreamer/VideoTrackPrivateGStreamer.cpp:

(WebCore::VideoTrackPrivateGStreamer::kind const):

  • platform/graphics/gstreamer/VideoTrackPrivateGStreamer.h:
Location:
trunk/Source/WebCore
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r230909 r230910  
     12018-04-23  Thibault Saunier  <tsaunier@igalia.com>
     2
     3        [GStreamer] Start implementing Audio/VideoTrackPrivateGSTreamer::kind method
     4        https://bugs.webkit.org/show_bug.cgi?id=184650
     5
     6        Reviewed by Philippe Normand.
     7
     8        In the playbin3 case we can assume that if the GstStream is selected by default,
     9        it is the Main track of that kind.
     10
     11        No new tests are added as:
     12            * It relies on playbin3 case which support might be compiled out
     13            * we already have a few test that are currently disabled in the mediastream
     14              testsuite. This patch is part of the work to enable them.
     15
     16        * platform/graphics/gstreamer/AudioTrackPrivateGStreamer.cpp:
     17        (WebCore::AudioTrackPrivateGStreamer::kind const):
     18        * platform/graphics/gstreamer/AudioTrackPrivateGStreamer.h:
     19        * platform/graphics/gstreamer/VideoTrackPrivateGStreamer.cpp:
     20        (WebCore::VideoTrackPrivateGStreamer::kind const):
     21        * platform/graphics/gstreamer/VideoTrackPrivateGStreamer.h:
     22
    1232018-04-23  Alicia Boya García  <aboya@igalia.com>
    224
  • trunk/Source/WebCore/platform/graphics/gstreamer/AudioTrackPrivateGStreamer.cpp

    r230674 r230910  
    5353    notifyTrackOfActiveChanged();
    5454}
     55
     56AudioTrackPrivate::Kind AudioTrackPrivateGStreamer::kind() const
     57{
     58    if (m_stream.get() && gst_stream_get_stream_flags(m_stream.get()) & GST_STREAM_FLAG_SELECT)
     59        return AudioTrackPrivate::Kind::Main;
     60
     61    return AudioTrackPrivate::kind();
     62}
    5563#endif
    5664
  • trunk/Source/WebCore/platform/graphics/gstreamer/AudioTrackPrivateGStreamer.h

    r230625 r230910  
    4949        return adoptRef(*new AudioTrackPrivateGStreamer(player, index, stream));
    5050    }
     51
     52    Kind kind() const final;
    5153#endif
    5254
  • trunk/Source/WebCore/platform/graphics/gstreamer/VideoTrackPrivateGStreamer.cpp

    r230674 r230910  
    5353    notifyTrackOfActiveChanged();
    5454}
     55
     56VideoTrackPrivate::Kind VideoTrackPrivateGStreamer::kind() const
     57{
     58    if (m_stream.get() && gst_stream_get_stream_flags(m_stream.get()) & GST_STREAM_FLAG_SELECT)
     59        return VideoTrackPrivate::Kind::Main;
     60
     61    return VideoTrackPrivate::kind();
     62}
    5563#endif
    5664
  • trunk/Source/WebCore/platform/graphics/gstreamer/VideoTrackPrivateGStreamer.h

    r230625 r230910  
    4949        return adoptRef(*new VideoTrackPrivateGStreamer(player, index, stream));
    5050    }
     51    Kind kind() const final;
    5152#endif
    5253
Note: See TracChangeset for help on using the changeset viewer.