* - When the user click the check box to listen one of the Audio channels, the structure rtp_channels is filled
* to play one or two RTP channels (a max of two channels can be listened at a given moment)
*
-*
-*
-*
-*
* Wireshark - Network traffic analyzer
* By Gerald Combs <gerald@wireshark.org>
* Copyright 1999 Gerald Combs
/****************************************************************************/
static void
-rtp_key_destroy(gchar *key)
+rtp_key_destroy(gpointer key)
{
g_free(key);
key = NULL;
/****************************************************************************/
static void
-rtp_channel_value_destroy(rtp_channel_info_t *rci)
+rtp_channel_value_destroy(gpointer rci_arg)
{
+ rtp_channel_info_t *rci = rci_arg;
+
g_array_free(rci->samples, TRUE);
g_free(rci);
rci = NULL;
/****************************************************************************/
static void
-rtp_stream_value_destroy(rtp_stream_info_t *rsi)
+rtp_stream_value_destroy(gpointer rsi_arg)
{
+ rtp_stream_info_t *rsi = rsi_arg;
GList* rtp_packets_list;
rtp_packet_t *rp;
return TRUE;
}
-static gboolean draw_cursors(gpointer *data);
+static gboolean draw_cursors(gpointer data);
/****************************************************************************/
static void
-stop_channels()
+stop_channels(void)
{
PaError err;
GtkWidget *dialog;
/* Move and draw the cursor in the graph
*/
static gboolean
-draw_cursors(gpointer *data)
+draw_cursors(gpointer data)
{
- static GdkPixbuf* pixbuf = NULL;
- static PaTimestamp prev;
-
if (!rtp_channels) return FALSE;
/* Draw and move each of the two channels */
}
/****************************************************************************/
-void
-init_rtp_channels_vals()
+static void
+init_rtp_channels_vals(void)
{
rtp_play_channles_t *rpci = rtp_channels;
/****************************************************************************/
static void
-play_channels()
+play_channels(void)
{
PaError err;
GtkWidget *dialog;
/****************************************************************************/
static void
-pause_channels()
+pause_channels(void)
{
rtp_channels->pause = !(rtp_channels->pause);
/****************************************************************************/
static void
-reset_rtp_channels()
+reset_rtp_channels(void)
{
rtp_channels->channel = 0;
rtp_channels->rci[0] = NULL;
/****************************************************************************/
static void
-reset_channels()
+reset_channels(void)
{
/* Remove the channels from the main window if there are there */
/****************************************************************************/
void
-reset_rtp_player()
+reset_rtp_player(void)
{
/* Destroy the rtp channels */
reset_channels();
/****************************************************************************/
static void
-decode_streams()
+decode_streams(void)
{
guint statusbar_context;
guint counter;
}
/****************************************************************************/
-static void rtp_player_dlg_create()
+static void
+rtp_player_dlg_create(void)
{
GtkWidget *main_vb;
GtkWidget *hbuttonbox;
hbuttonbox = gtk_hbutton_box_new ();
/* Filter/status hbox */
- stat_hbox = gtk_hbox_new(FALSE, 1);
- gtk_container_border_width(GTK_CONTAINER(stat_hbox), 0);
+ stat_hbox = gtk_hbox_new(FALSE, 1);
+ gtk_container_border_width(GTK_CONTAINER(stat_hbox), 0);
/* statusbar */
info_bar = gtk_statusbar_new();
gtk_statusbar_set_has_resize_grip(GTK_STATUSBAR(info_bar), TRUE);
- gtk_box_pack_start(GTK_BOX(stat_hbox), info_bar, TRUE, TRUE, 0);
+ gtk_box_pack_start(GTK_BOX(stat_hbox), info_bar, TRUE, TRUE, 0);
/* statusbar hbox */
- gtk_box_pack_start(GTK_BOX(main_vb), stat_hbox, FALSE, TRUE, 0);
+ gtk_box_pack_start(GTK_BOX(main_vb), stat_hbox, FALSE, TRUE, 0);
/* set the sensitive state of the buttons (decode, play, pause, stop) */
bt_state(TRUE, FALSE, FALSE, FALSE);