| 524 else { |
524 else { |
| 525 purple_debug_error("sound", "Unknown sound method '%s'\n", method); |
525 purple_debug_error("sound", "Unknown sound method '%s'\n", method); |
| 526 return; |
526 return; |
| 527 } |
527 } |
| 528 |
528 |
| 529 if (strcmp(method, "automatic") != 0 && !sink) { |
529 if (!purple_strequal(method, "automatic") && !sink) { |
| 530 purple_debug_error("sound", "Unable to create GStreamer audiosink.\n"); |
530 purple_debug_error("sound", "Unable to create GStreamer audiosink.\n"); |
| 531 return; |
531 return; |
| 532 } |
532 } |
| 533 |
533 |
| 534 play = gst_element_factory_make("playbin", "play"); |
534 play = gst_element_factory_make("playbin", "play"); |