@@ -28,14 +28,14 @@ std::string bytesToString(const std::vector<std::uint8_t>& bytes) {
2828 return std::string (reinterpret_cast <const char *>(bytes.data ()), bytes.size ());
2929}
3030
31- std::vector<proto::PacketTrailerFeature > toProto (const PacketTrailerFeatures& features) {
32- std::vector<proto::PacketTrailerFeature > out;
31+ std::vector<proto::FrameMetadataFeature > toProto (const PacketTrailerFeatures& features) {
32+ std::vector<proto::FrameMetadataFeature > out;
3333 out.reserve (2 );
3434 if (features.user_timestamp ) {
35- out.push_back (proto::PacketTrailerFeature:: PTF_USER_TIMESTAMP );
35+ out.push_back (proto::FrameMetadataFeature:: FMF_USER_TIMESTAMP );
3636 }
3737 if (features.frame_id ) {
38- out.push_back (proto::PacketTrailerFeature:: PTF_FRAME_ID );
38+ out.push_back (proto::FrameMetadataFeature:: FMF_FRAME_ID );
3939 }
4040 return out;
4141}
@@ -44,10 +44,10 @@ PacketTrailerFeatures fromProto(const google::protobuf::RepeatedField<int>& feat
4444 PacketTrailerFeatures out{};
4545 for (const int feature : features) {
4646 switch (feature) {
47- case proto::PacketTrailerFeature:: PTF_USER_TIMESTAMP :
47+ case proto::FrameMetadataFeature:: FMF_USER_TIMESTAMP :
4848 out.user_timestamp = true ;
4949 break ;
50- case proto::PacketTrailerFeature:: PTF_FRAME_ID :
50+ case proto::FrameMetadataFeature:: FMF_FRAME_ID :
5151 out.frame_id = true ;
5252 break ;
5353 default :
@@ -502,8 +502,8 @@ proto::TrackPublishOptions toProto(const TrackPublishOptions& in) {
502502 if (in.preconnect_buffer ) {
503503 msg.set_preconnect_buffer (*in.preconnect_buffer );
504504 }
505- for (const proto::PacketTrailerFeature feature : toProto (in.packet_trailer_features )) {
506- msg.add_packet_trailer_features (feature);
505+ for (const proto::FrameMetadataFeature feature : toProto (in.packet_trailer_features )) {
506+ msg.add_frame_metadata_features (feature);
507507 }
508508 return msg;
509509}
@@ -537,7 +537,7 @@ TrackPublishOptions fromProto(const proto::TrackPublishOptions& in) {
537537 if (in.has_preconnect_buffer ()) {
538538 out.preconnect_buffer = in.preconnect_buffer ();
539539 }
540- out.packet_trailer_features = fromProto (in.packet_trailer_features ());
540+ out.packet_trailer_features = fromProto (in.frame_metadata_features ());
541541 return out;
542542}
543543
0 commit comments