diff options
author | B Watson <yalhcru@gmail.com> | 2015-01-13 06:50:53 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2015-01-13 06:51:25 +0700 |
commit | 5eae26b7b41bbd559019b093333e0218f553db5f (patch) | |
tree | bd88a966ad705289c85ad779679d57f6fa75bab0 /audio/mp3splt-gtk/default_player.diff | |
parent | a0372bb151a3c2b372af7426a7ea6dab97ce8702 (diff) | |
download | slackbuilds-5eae26b7b41bbd559019b093333e0218f553db5f.tar.gz |
audio/mp3splt-gtk: Updated for version 0.9.2.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'audio/mp3splt-gtk/default_player.diff')
-rw-r--r-- | audio/mp3splt-gtk/default_player.diff | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/audio/mp3splt-gtk/default_player.diff b/audio/mp3splt-gtk/default_player.diff new file mode 100644 index 0000000000..123bc08a73 --- /dev/null +++ b/audio/mp3splt-gtk/default_player.diff @@ -0,0 +1,44 @@ +diff -Naur mp3splt-gtk-0.9.2/src/preferences_manager.c mp3splt-gtk-0.9.2.patched/src/preferences_manager.c +--- mp3splt-gtk-0.9.2/src/preferences_manager.c 2014-05-28 18:43:53.000000000 -0400 ++++ mp3splt-gtk-0.9.2.patched/src/preferences_manager.c 2015-01-08 17:25:36.000000000 -0500 +@@ -42,6 +42,16 @@ + + #include "preferences_manager.h" + ++#ifdef NO_GSTREAMER ++ #ifdef NO_AUDACIOUS ++ #define DEFAULT_PLAYER PLAYER_SNACKAMP ++ #else ++ #define DEFAULT_PLAYER PLAYER_AUDACIOUS ++ #endif ++#else ++ #define DEFAULT_PLAYER PLAYER_GSTREAMER ++#endif ++ + static void check_pref_file_and_write_default(ui_state *ui); + static void pm_free_spinner_int_preferences(GArray *spinner_int_preferences); + static void pm_free_range_preferences(GArray *range_preferences); +@@ -771,7 +781,7 @@ + if (!g_key_file_has_key(my_key_file, "player", "default_player",NULL)) + { + g_key_file_set_integer(my_key_file, "player", "default_player", +- PLAYER_GSTREAMER); ++ DEFAULT_PLAYER); + g_key_file_set_comment (my_key_file, "player", "default_player", + "\n 1 = PLAYER_AUDACIOUS, 2 = PLAYER_SNACKAMP, 3 = PLAYER_GSTREAMER", + NULL); +@@ -784,7 +794,13 @@ + if (the_player == PLAYER_AUDACIOUS) + { + #ifdef NO_AUDACIOUS +- g_key_file_set_integer(my_key_file, "player", "default_player", PLAYER_SNACKAMP); ++ g_key_file_set_integer(my_key_file, "player", "default_player", DEFAULT_PLAYER); ++#endif ++ } ++ if (the_player == PLAYER_GSTREAMER) ++ { ++#ifdef NO_GSTREAMER ++ g_key_file_set_integer(my_key_file, "player", "default_player", DEFAULT_PLAYER); + #endif + } + //if the value do not make sense |