[0.6.225] set text track info 56/231356/3
authorEunhye Choi <eunhae1.choi@samsung.com>
Tue, 21 Apr 2020 10:25:57 +0000 (19:25 +0900)
committerEunhye Choi <eunhae1.choi@samsung.com>
Tue, 21 Apr 2020 10:49:42 +0000 (19:49 +0900)
- update text attributes about the track
  which attrs are referenced at external
  text scenario too.

Change-Id: I5ad35dbcfc23df843b109d68ce90f656b8b0da40

packaging/libmm-player.spec
src/mm_player_priv.c

index add6374..7109f68 100644 (file)
@@ -1,6 +1,6 @@
 Name:       libmm-player
 Summary:    Multimedia Framework Player Library
-Version:    0.6.224
+Version:    0.6.225
 Release:    0
 Group:      Multimedia/Libraries
 License:    Apache-2.0
index a148f06..15ecef3 100644 (file)
@@ -1356,10 +1356,16 @@ _mmplayer_gst_decode_pad_added(GstElement *elem, GstPad *pad, gpointer data)
                }
        }
 
-       if (MMPLAYER_USE_DECODEBIN(player))
+       if (MMPLAYER_USE_DECODEBIN(player)) {
                _mmplayer_track_update_stream(player, stream_type, sinkpad);
-       else
+       } else {
+               /* apply the text track information */
+               if (stream_type == MM_PLAYER_TRACK_TYPE_TEXT)
+                       mm_player_set_attribute((MMHandleType)player, NULL,
+                                       "content_text_track_num", player->track[stream_type].total_track_num,
+                                       "current_text_track_index", player->track[stream_type].active_track_index, NULL);
                __mmplayer_create_sink_path(player, combiner, stream_type, caps);
+       }
 
 DONE:
 ERROR: