| OLD | NEW |
| 1 /* | 1 /* |
| 2 * libjingle | 2 * libjingle |
| 3 * Copyright 2004 Google Inc. | 3 * Copyright 2004 Google Inc. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions are met: | 6 * modification, are permitted provided that the following conditions are met: |
| 7 * | 7 * |
| 8 * 1. Redistributions of source code must retain the above copyright notice, | 8 * 1. Redistributions of source code must retain the above copyright notice, |
| 9 * this list of conditions and the following disclaimer. | 9 * this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright notice, | 10 * 2. Redistributions in binary form must reproduce the above copyright notice, |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 // Determines packet belongs to valid cricket::BaseChannel. | 53 // Determines packet belongs to valid cricket::BaseChannel. |
| 54 bool DemuxPacket(const char* data, size_t len, bool rtcp); | 54 bool DemuxPacket(const char* data, size_t len, bool rtcp); |
| 55 | 55 |
| 56 // Adds the supported payload type. | 56 // Adds the supported payload type. |
| 57 void AddPayloadType(int payload_type); | 57 void AddPayloadType(int payload_type); |
| 58 | 58 |
| 59 // Adding a valid source to the filter. | 59 // Adding a valid source to the filter. |
| 60 bool AddStream(const StreamParams& stream); | 60 bool AddStream(const StreamParams& stream); |
| 61 | 61 |
| 62 // Removes source from the filter. | 62 // Removes source from the filter. |
| 63 bool RemoveStream(uint32 ssrc); | 63 bool RemoveStream(uint32_t ssrc); |
| 64 | 64 |
| 65 // Utility methods added for unitest. | 65 // Utility methods added for unitest. |
| 66 // True if |streams_| is not empty. | 66 // True if |streams_| is not empty. |
| 67 bool HasStreams() const; | 67 bool HasStreams() const; |
| 68 bool FindStream(uint32 ssrc) const; | 68 bool FindStream(uint32_t ssrc) const; |
| 69 bool FindPayloadType(int pl_type) const; | 69 bool FindPayloadType(int pl_type) const; |
| 70 void ClearAllPayloadTypes(); | 70 void ClearAllPayloadTypes(); |
| 71 | 71 |
| 72 | 72 |
| 73 private: | 73 private: |
| 74 std::set<int> payload_types_; | 74 std::set<int> payload_types_; |
| 75 std::vector<StreamParams> streams_; | 75 std::vector<StreamParams> streams_; |
| 76 }; | 76 }; |
| 77 | 77 |
| 78 } // namespace cricket | 78 } // namespace cricket |
| 79 | 79 |
| 80 #endif // TALK_SESSION_MEDIA_BUNDLEFILTER_H_ | 80 #endif // TALK_SESSION_MEDIA_BUNDLEFILTER_H_ |
| OLD | NEW |