From 0ed41b3094582f21808d731cf2b5700af21014d2 Mon Sep 17 00:00:00 2001 From: Jeongyoon Nam Date: Mon, 6 Mar 2023 17:02:39 +0900 Subject: [PATCH] add ini to set default video codec type [Version] 0.0.9 [Issue Type] Add Change-Id: I5aa8395925589a072793ed7404288e363b0d5ca1 --- config/esplusplayer.ini | 3 ++- packaging/esplusplayer.spec | 2 +- src/esplusplayer/src/esplayer.cpp | 4 ++++ 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/config/esplusplayer.ini b/config/esplusplayer.ini index f3fd38a..a78a6d7 100644 --- a/config/esplusplayer.ini +++ b/config/esplusplayer.ini @@ -4,5 +4,6 @@ "gstparam3" : "--gst-plugin-load", "gstparam4" : "--gst-disable-registry-fork", "gstparam5" : "--gst-disable-registry-update", - "generate_dot" : false + "generate_dot" : false, + "use_default_video_codec_sw" : false } diff --git a/packaging/esplusplayer.spec b/packaging/esplusplayer.spec index b82b4ec..8e52b8d 100644 --- a/packaging/esplusplayer.spec +++ b/packaging/esplusplayer.spec @@ -2,7 +2,7 @@ %bcond_without ESPLUSPLAYER_UT Name: esplusplayer Summary: new multimedia streaming player -Version: 0.0.8 +Version: 0.0.9 Release: 0 Group: Multimedia/Libraries License: Apache-2.0 diff --git a/src/esplusplayer/src/esplayer.cpp b/src/esplusplayer/src/esplayer.cpp index f805b53..3ded2ae 100644 --- a/src/esplusplayer/src/esplayer.cpp +++ b/src/esplusplayer/src/esplayer.cpp @@ -1625,6 +1625,10 @@ void LoadIniProperty(const Json::Value& root) { std::string key = "generate_dot"; es_conf::ini_property[key] = root.get(key, "").asBool(); LOG_DEBUG("[%s] : [%d]", key.c_str(), es_conf::ini_property[key]); + + key = "use_default_video_codec_sw"; + es_conf::ini_property[key] = root.get(key, "").asBool(); + LOG_DEBUG("[%s] : [%d]", key.c_str(), es_conf::ini_property[key]); } bool LoadIniFile() { -- 2.7.4