From f31f21be0c54c24ed562f2f301e5c16c797f8856 Mon Sep 17 00:00:00 2001 From: TangoCash Date: Fri, 27 Oct 2017 22:21:30 +0200 Subject: [PATCH] armbox: add video/audio pid --- libarmbox/playback_gst.cpp | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/libarmbox/playback_gst.cpp b/libarmbox/playback_gst.cpp index 3c852be..19e9588 100644 --- a/libarmbox/playback_gst.cpp +++ b/libarmbox/playback_gst.cpp @@ -974,13 +974,18 @@ uint64_t cPlayback::GetReadCount() int cPlayback::GetAPid(void) { - lt_info("%s\n", __func__); - return mAudioStream; + gint current_audio = 0; + g_object_get (m_gst_playbin, "current-audio", ¤t_audio, NULL); + lt_info("%s: %d audio\n", __FUNCTION__, current_audio); + return current_audio; } int cPlayback::GetVPid(void) { - return 0; + gint current_video = 0; + g_object_get (m_gst_playbin, "current-video", ¤t_video, NULL); + lt_info("%s: %d video\n", __FUNCTION__, current_video); + return current_video; } int cPlayback::GetSubtitlePid(void)