diff options
author | Gerald Combs <gerald@wireshark.org> | 2015-10-20 08:31:52 -0700 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2015-10-21 17:52:15 +0000 |
commit | 8682eb49ef9e865be114ac57525628527bad1bd6 (patch) | |
tree | ca29ce58ee792b2b0b01b32ed8d858c9c58624e2 /ui/qt/rtp_audio_stream.h | |
parent | ed27dad41eb2085fa2afb51c6a66a89bd1c64ad4 (diff) | |
download | wireshark-8682eb49ef9e865be114ac57525628527bad1bd6.tar.gz |
Split RTP player tapping, decoding, and plotting.
In RtpAudioStream split tapping+decoding into separate member functions.
Store RTP payloads in memory. In RtpPlayerDialog split tapping+plotting.
This more closely resembles what we're doing in the GTK+ UI and paves
the way for jitter support and other changes.
Change-Id: I244c225cec8930545622e6582b7be35ebe45b237
Reviewed-on: https://code.wireshark.org/review/11195
Petri-Dish: Gerald Combs <gerald@wireshark.org>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Gerald Combs <gerald@wireshark.org>
Diffstat (limited to 'ui/qt/rtp_audio_stream.h')
-rw-r--r-- | ui/qt/rtp_audio_stream.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/ui/qt/rtp_audio_stream.h b/ui/qt/rtp_audio_stream.h index 33c3c469ab..f329870161 100644 --- a/ui/qt/rtp_audio_stream.h +++ b/ui/qt/rtp_audio_stream.h @@ -40,6 +40,7 @@ class QAudioOutput; class QTemporaryFile; +struct _rtp_info; struct _rtp_stream_info; struct _rtp_sample; @@ -54,6 +55,7 @@ public: void addRtpStream(const struct _rtp_stream_info *rtp_stream); void addRtpPacket(const struct _packet_info *pinfo, const struct _rtp_info *rtp_info); void reset(double start_rel_time); + void decode(); double startRelTime() const { return start_rel_time_; } double stopRelTime() const { return stop_rel_time_; } @@ -103,11 +105,15 @@ public slots: void stopPlaying(); private: + // Used to identify unique streams. + // The GTK+ UI also uses the call number + current channel. address src_addr_; quint16 src_port_; address dst_addr_; quint16 dst_port_; quint32 ssrc_; + + QVector<struct _rtp_packet *>rtp_packets_; int last_sequence_; QTemporaryFile *tempfile_; struct _GHashTable *decoders_hash_; @@ -130,7 +136,6 @@ private: private slots: void outputStateChanged(); void outputNotify(); - }; #endif // QT_MULTIMEDIA_LIB |