LCOV - code coverage report
Current view: top level - source - PullModeSubtitlePlaybackDelegate.h (source / functions) Coverage Total Hit
Test: coverage.info Lines: 100.0 % 1 1
Test Date: 2025-08-04 11:40:41 Functions: 100.0 % 1 1

            Line data    Source code
       1              : /*
       2              :  * Copyright (C) 2025 Sky UK
       3              :  *
       4              :  * This library is free software; you can redistribute it and/or
       5              :  * modify it under the terms of the GNU Lesser General Public
       6              :  * License as published by the Free Software Foundation;
       7              :  * version 2.1 of the License.
       8              :  *
       9              :  * This library is distributed in the hope that it will be useful,
      10              :  * but WITHOUT ANY WARRANTY; without even the implied warranty of
      11              :  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
      12              :  * Lesser General Public License for more details.
      13              :  *
      14              :  * You should have received a copy of the GNU Lesser General Public
      15              :  * License along with this library; if not, write to the Free Software
      16              :  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
      17              :  */
      18              : 
      19              : #pragma once
      20              : 
      21              : #include "PullModePlaybackDelegate.h"
      22              : #include <atomic>
      23              : #include <mutex>
      24              : #include <string>
      25              : 
      26              : class PullModeSubtitlePlaybackDelegate : public PullModePlaybackDelegate
      27              : {
      28              : public:
      29              :     explicit PullModeSubtitlePlaybackDelegate(GstElement *sink);
      30           21 :     ~PullModeSubtitlePlaybackDelegate() override = default;
      31              : 
      32              :     GstStateChangeReturn changeState(GstStateChange transition) override;
      33              :     gboolean handleEvent(GstEvent *event) override;
      34              :     void getProperty(const Property &type, GValue *value) override;
      35              :     void setProperty(const Property &type, const GValue *value) override;
      36              :     void handleQos(uint64_t processed, uint64_t dropped) const override;
      37              : 
      38              : private:
      39              :     std::unique_ptr<firebolt::rialto::IMediaPipeline::MediaSource> createMediaSource(GstCaps *caps) const;
      40              : 
      41              : private:
      42              :     std::mutex m_mutex;
      43              :     std::string m_textTrackIdentifier{};
      44              :     bool m_isTextTrackIdentifierQueued{false};
      45              :     std::atomic<bool> m_isMuted{false};
      46              :     bool m_isMuteQueued{false};
      47              :     uint32_t m_videoId{0};
      48              : };
        

Generated by: LCOV version 2.0-1