summaryrefslogtreecommitdiffstats
path: root/media/libstagefright/rtsp/ASessionDescription.cpp
diff options
context:
space:
mode:
authorAndreas Huber <andih@google.com>2010-08-05 11:46:04 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2010-08-05 11:46:04 -0700
commit982a93173bc84f005172152d823cbb59dfcbeb12 (patch)
tree2ef94049c4daadc6b4da5a3d6c93c04d99d08d05 /media/libstagefright/rtsp/ASessionDescription.cpp
parentaa68b49a53a874a1813e65752663f19d18149e2c (diff)
parent347d3c1dabd7ae9c998a024c685de2001e0ff369 (diff)
downloadframeworks_av-982a93173bc84f005172152d823cbb59dfcbeb12.zip
frameworks_av-982a93173bc84f005172152d823cbb59dfcbeb12.tar.gz
frameworks_av-982a93173bc84f005172152d823cbb59dfcbeb12.tar.bz2
am 1f513d88: am c17f35dd: Merge "Support for Gtalk video, includes AMR/H.263 assembler and packetization support, extensions to MediaRecorder to stream via RTP over a pair of UDP sockets as well as various fixes to the RTP implementation." into gingerbread
Merge commit '1f513d8821670a33d6361ea521b6756163a3f9bf' * commit '1f513d8821670a33d6361ea521b6756163a3f9bf': Support for Gtalk video, includes AMR/H.263 assembler and packetization support, extensions to MediaRecorder to stream via RTP over a pair of UDP sockets as well as various fixes to the RTP implementation.
Diffstat (limited to 'media/libstagefright/rtsp/ASessionDescription.cpp')
-rw-r--r--media/libstagefright/rtsp/ASessionDescription.cpp20
1 files changed, 19 insertions, 1 deletions
diff --git a/media/libstagefright/rtsp/ASessionDescription.cpp b/media/libstagefright/rtsp/ASessionDescription.cpp
index 25b9ce2..8187e0c 100644
--- a/media/libstagefright/rtsp/ASessionDescription.cpp
+++ b/media/libstagefright/rtsp/ASessionDescription.cpp
@@ -49,7 +49,7 @@ bool ASessionDescription::parse(const void *data, size_t size) {
mFormats.push(AString("[root]"));
AString desc((const char *)data, size);
- LOG(VERBOSE) << desc;
+ LOG(INFO) << desc;
size_t i = 0;
for (;;) {
@@ -116,6 +116,24 @@ bool ASessionDescription::parse(const void *data, size_t size) {
mFormats.push(AString(line, 2, line.size() - 2));
break;
}
+
+ default:
+ {
+ AString key, value;
+
+ ssize_t equalPos = line.find("=");
+
+ key = AString(line, 0, equalPos + 1);
+ value = AString(line, equalPos + 1, line.size() - equalPos - 1);
+
+ key.trim();
+ value.trim();
+
+ LOG(VERBOSE) << "adding '" << key << "' => '" << value << "'";
+
+ mTracks.editItemAt(mTracks.size() - 1).add(key, value);
+ break;
+ }
}
i = eolPos + 2;