| 606 transmitter = "nice"; |
606 transmitter = "nice"; |
| 607 else |
607 else |
| 608 transmitter = "notransmitter"; |
608 transmitter = "notransmitter"; |
| 609 g_object_unref(transport); |
609 g_object_unref(transport); |
| 610 |
610 |
| 611 is_audio = g_str_equal(media_type, "audio"); |
611 is_audio = purple_strequal(media_type, "audio"); |
| 612 |
612 |
| 613 if (purple_strequal(senders, "both")) |
613 if (purple_strequal(senders, "both")) |
| 614 type = is_audio ? PURPLE_MEDIA_AUDIO |
614 type = is_audio ? PURPLE_MEDIA_AUDIO |
| 615 : PURPLE_MEDIA_VIDEO; |
615 : PURPLE_MEDIA_VIDEO; |
| 616 else if (purple_strequal(senders, "initiator") == |
616 else if (purple_strequal(senders, "initiator") == |
| 673 if (media == NULL) { |
673 if (media == NULL) { |
| 674 purple_debug_warning("jingle-rtp", "missing media type\n"); |
674 purple_debug_warning("jingle-rtp", "missing media type\n"); |
| 675 return NULL; |
675 return NULL; |
| 676 } |
676 } |
| 677 |
677 |
| 678 if (g_str_equal(media, "video")) { |
678 if (purple_strequal(media, "video")) { |
| 679 type = PURPLE_MEDIA_VIDEO; |
679 type = PURPLE_MEDIA_VIDEO; |
| 680 } else if (g_str_equal(media, "audio")) { |
680 } else if (purple_strequal(media, "audio")) { |
| 681 type = PURPLE_MEDIA_AUDIO; |
681 type = PURPLE_MEDIA_AUDIO; |
| 682 } else { |
682 } else { |
| 683 purple_debug_warning("jingle-rtp", "unknown media type: %s\n", |
683 purple_debug_warning("jingle-rtp", "unknown media type: %s\n", |
| 684 media); |
684 media); |
| 685 return NULL; |
685 return NULL; |