From 33756736cad7c95871152acaaa41dd21348ab187 Mon Sep 17 00:00:00 2001 From: pei-jiankang Date: Sun, 26 Sep 2021 15:05:58 +0800 Subject: [PATCH] repair the input device is not find of recorder (cherry picked from commit 224142fc4cfadf26b62e6208774df4a1bcb9948f) --- ...input-device-is-not-find-of-recorder.patch | 41 +++++++++++++++++++ ukui-media.spec | 9 +++- 2 files changed, 48 insertions(+), 2 deletions(-) create mode 100644 0009-repair-the-input-device-is-not-find-of-recorder.patch diff --git a/0009-repair-the-input-device-is-not-find-of-recorder.patch b/0009-repair-the-input-device-is-not-find-of-recorder.patch new file mode 100644 index 0000000..03e9ec6 --- /dev/null +++ b/0009-repair-the-input-device-is-not-find-of-recorder.patch @@ -0,0 +1,41 @@ +From 1fabf63c4d7d3269120c56229f11d519ef6bc8f8 Mon Sep 17 00:00:00 2001 +From: pei-jiankang +Date: Sun, 26 Sep 2021 14:54:39 +0800 +Subject: [PATCH] repair the input device is not find of recorder + +--- + .../ukmedia_device_switch_widget.cpp | 18 +++++++++--------- + 1 file changed, 9 insertions(+), 9 deletions(-) + +diff --git a/ukui-volume-control-applet-qt/ukmedia_device_switch_widget.cpp b/ukui-volume-control-applet-qt/ukmedia_device_switch_widget.cpp +index c074675..8307fc1 100755 +--- a/ukui-volume-control-applet-qt/ukmedia_device_switch_widget.cpp ++++ b/ukui-volume-control-applet-qt/ukmedia_device_switch_widget.cpp +@@ -1416,15 +1416,15 @@ void DeviceSwitchWidget::add_stream (DeviceSwitchWidget *w, MateMixerStream *str + MateMixerStreamControl *c = mate_mixer_stream_get_default_control(stream); + update_input_settings (w,c); + } +- else { +- mate_mixer_context_set_default_input_stream(w->context,stream); +- qDebug() << "add stream set input stream 1" << mate_mixer_stream_get_name(stream); +- bar_set_stream (w, stream); +- name = mate_mixer_stream_get_name (stream); +- label = mate_mixer_stream_get_label (stream); +- qDebug() << "add stream set input stream" << name; +- w->input_stream_list->append(name); +- } ++ // else { ++ // mate_mixer_context_set_default_input_stream(w->context,stream); ++ // qDebug() << "add stream set input stream 1" << mate_mixer_stream_get_name(stream); ++ // bar_set_stream (w, stream); ++ // name = mate_mixer_stream_get_name (stream); ++ // label = mate_mixer_stream_get_label (stream); ++ // qDebug() << "add stream set input stream" << name; ++ // w->input_stream_list->append(name); ++ // } + } + else if (direction == MATE_MIXER_DIRECTION_OUTPUT) { + MateMixerStream *output; +-- +2.30.0 + diff --git a/ukui-media.spec b/ukui-media.spec index a90ca8f..d05dcd9 100644 --- a/ukui-media.spec +++ b/ukui-media.spec @@ -1,6 +1,6 @@ Name: ukui-media Version: 3.0.2 -Release: 9 +Release: 10 Summary: UKUI media utilities License: GPL-2+ GPL-3+ LGPL-2+ BSD-3-Clause URL: http://www.ukui.org @@ -40,6 +40,7 @@ patch4: 0005-Solve-the-problem-of-adjusting-animation-freeze.patch patch5: 0006-fix-the-slider-to-adjust-the-microphone-volume.patch patch6: 0007-fix-probabilistic-crash-when-keyboard-keys-are-mute.patch patch7: 0008-Set-the-app-name-and-icon-for-Kirin-Recording.patch +patch8: 0009-repair-the-input-device-is-not-find-of-recorder.patch %description A simple and lightweight screensaver written by Qt5. @@ -65,6 +66,7 @@ Requires: %{name}%{?_isa} = %{version}-%{release} %patch5 -p1 %patch6 -p1 %patch7 -p1 +%patch8 -p1 %build ./autogen.sh --prefix=/usr --sysconfdir=/etc --libdir=/usr/lib64 @@ -126,7 +128,10 @@ glib-compile-schemas /usr/share/glib-2.0/schemas/ %{_datadir}/glib-2.0/ %changelog -* Wen Jul 14 2021 tanyulong - 3.0.2-9 +* Sun Sep 26 2021 peijiankang - 3.0.2-10 +- repair the input device is not find of recorder + +* Wed Jul 14 2021 tanyulong - 3.0.2-9 - Set the app name and icon for Kirin Recording * Tue Jul 13 2021 tanyulong - 3.0.2-8