pidgin-2.10.11-fix-sound-play-fd-leak.patch 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. --- a/finch/gntsound.c
  2. +++ b/finch/gntsound.c
  3. @@ -449,6 +449,7 @@ bus_call (GstBus *bus, GstMessage *msg,
  4. case GST_MESSAGE_EOS:
  5. gst_element_set_state(play, GST_STATE_NULL);
  6. gst_object_unref(GST_OBJECT(play));
  7. + return FALSE;
  8. break;
  9. case GST_MESSAGE_WARNING:
  10. gst_message_parse_warning(msg, &err, NULL);
  11. --- a/libpurple/mediamanager.c
  12. +++ b/libpurple/mediamanager.c
  13. @@ -288,6 +288,7 @@ pipeline_bus_call(GstBus *bus, GstMessag
  14. switch(GST_MESSAGE_TYPE(msg)) {
  15. case GST_MESSAGE_EOS:
  16. purple_debug_info("mediamanager", "End of Stream\n");
  17. + return FALSE;
  18. break;
  19. case GST_MESSAGE_ERROR: {
  20. gchar *debug = NULL;
  21. @@ -305,6 +306,7 @@
  22. "Debug details: %s\n", debug);
  23. g_free (debug);
  24. }
  25. + return FALSE;
  26. break;
  27. }
  28. default:
  29. --- a/pidgin/gtksound.c
  30. +++ b/pidgin/gtksound.c
  31. @@ -394,6 +394,7 @@ bus_call (GstBus *bus,
  32. case GST_MESSAGE_EOS:
  33. gst_element_set_state(play, GST_STATE_NULL);
  34. gst_object_unref(GST_OBJECT(play));
  35. + return FALSE;
  36. break;
  37. case GST_MESSAGE_WARNING:
  38. gst_message_parse_warning(msg, &err, NULL);