[0.6.286] Change the property name for setting max-bitrate used in adaptivedemux 54/295354/1
authorGilbok Lee <gilbok.lee@samsung.com>
Thu, 6 Jul 2023 02:34:39 +0000 (11:34 +0900)
committerGilbok Lee <gilbok.lee@samsung.com>
Thu, 6 Jul 2023 02:34:39 +0000 (11:34 +0900)
Change-Id: Ic28821d28854fe76875b10a649fa2307aa70cca2

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

index 0261739..c68189a 100644 (file)
@@ -1,6 +1,6 @@
 Name:       libmm-player
 Summary:    Multimedia Framework Player Library
-Version:    0.6.285
+Version:    0.6.286
 Release:    0
 Group:      Multimedia/Libraries
 License:    Apache-2.0
index c1e1518..f335587 100644 (file)
@@ -7868,7 +7868,7 @@ _mmplayer_gst_element_added(GstBin *bin, GstElement *element, gpointer data)
                                player->streamer->buffering_req.prebuffer_time);
 
                        g_object_set(player->pipeline->mainbin[MMPLAYER_M_ADAPTIVE_DEMUX].gst,
-                               "max-bandwidth", player->adaptive_info.limit.bandwidth,
+                               "max-bitrate", player->adaptive_info.limit.bandwidth,
                                "max-video-width", player->adaptive_info.limit.width,
                                "max-video-height", player->adaptive_info.limit.height,
                                "low-watermark-time", (guint64)(player->streamer->buffering_req.prebuffer_time * GST_MSECOND),
@@ -9074,7 +9074,7 @@ _mmplayer_set_max_adaptive_variant_limit(MMHandleType hplayer, int bandwidth, in
        if (player->pipeline && player->pipeline->mainbin && player->pipeline->mainbin[MMPLAYER_M_ADAPTIVE_DEMUX].gst) {
                LOGD("update max limit of %s", GST_ELEMENT_NAME(player->pipeline->mainbin[MMPLAYER_M_ADAPTIVE_DEMUX].gst));
                g_object_set(player->pipeline->mainbin[MMPLAYER_M_ADAPTIVE_DEMUX].gst,
-                                               "max-bandwidth", bandwidth, "max-video-width", width, "max-video-height", height, NULL);
+                                               "max-bitrate", bandwidth, "max-video-width", width, "max-video-height", height, NULL);
 
                /* FIXME: seek to current position for applying new variant limitation */
        }