This is an automated email from the git hooks/post-receive script.

git pushed a commit to branch main
in repository eradio.

View the commit online.

commit af948141118c46450b209eb4c7df99fdc75d5702
Author: politebot <[email protected]>
AuthorDate: Thu Oct 23 06:39:23 2025 -0500

    Stop playback when closing visualizer
---
 src/visualizer.c | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

diff --git a/src/visualizer.c b/src/visualizer.c
index 634aec5..3be7417 100644
--- a/src/visualizer.c
+++ b/src/visualizer.c
@@ -1,5 +1,6 @@
 #include "visualizer.h"
 #include "ui.h"
+#include "radio_player.h"
 
 static void _visualizer_win_del_cb(void *data, Evas_Object *obj, void *event_info);
 static void _visualizer_title_changed_cb(void *data, Evas_Object *obj, void *event_info);
@@ -101,7 +102,7 @@ visualizer_hide(AppData *ad)
    if (!ad->visualizer_active)
      return;
 
-   // Stop the visualizer player and restore main player if needed
+   // Stop the visualizer player
    if (ad->visualizer_emotion)
      {
         emotion_object_play_set(ad->visualizer_emotion, EINA_FALSE);
@@ -109,11 +110,8 @@ visualizer_hide(AppData *ad)
         ad->visualizer_emotion = NULL;
      }
 
-   // If we were playing before showing visualizer, restore main player
-   if (ad->playing && ad->emotion)
-     {
-        emotion_object_play_set(ad->emotion, EINA_TRUE);
-     }
+   // Stop playback completely instead of resuming main player
+   radio_player_stop(ad);
 
    if (ad->visualizer_win)
      {

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.

Reply via email to