mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 11:45:25 +00:00
gst-libs/gst/rtp/gstbasertpaudiopayload.c: Move variable declaration before the first instruction.
Original commit message from CVS: * gst-libs/gst/rtp/gstbasertpaudiopayload.c: (gst_base_rtp_audio_payload_handle_frame_based_buffer): Move variable declaration before the first instruction. * gst/videotestsrc/videotestsrc.c: Define M_PI if it's not defined yet. * win32/common/libgstrtp.def: Add new exported functions.
This commit is contained in:
parent
9b7339170b
commit
c88306fe26
5 changed files with 20 additions and 2 deletions
10
ChangeLog
10
ChangeLog
|
@ -1,3 +1,13 @@
|
|||
2007-05-09 Sebastien Moutte <sebastien@moutte.net>
|
||||
|
||||
* gst-libs/gst/rtp/gstbasertpaudiopayload.c:
|
||||
(gst_base_rtp_audio_payload_handle_frame_based_buffer):
|
||||
Move variable declaration before the first instruction.
|
||||
* gst/videotestsrc/videotestsrc.c:
|
||||
Define M_PI if it's not defined yet.
|
||||
* win32/common/libgstrtp.def:
|
||||
Add new exported functions.
|
||||
|
||||
2007-05-09 Michael Smith <msmith@fluendo.com>
|
||||
|
||||
* ext/theora/theoradec.c: (theora_handle_type_packet):
|
||||
|
|
2
common
2
common
|
@ -1 +1 @@
|
|||
Subproject commit 61edc2dc7b8eba179d85a6545e46e0d65239e94d
|
||||
Subproject commit a6e41a42ec1b93fddbd14b2e5af87e2d456b8962
|
|
@ -353,6 +353,7 @@ gst_base_rtp_audio_payload_handle_frame_based_buffer (GstBaseRTPPayload *
|
|||
guint min_payload_len;
|
||||
guint max_payload_len;
|
||||
gboolean use_adapter = FALSE;
|
||||
guint minptime_ms;
|
||||
|
||||
ret = GST_FLOW_OK;
|
||||
|
||||
|
@ -389,7 +390,7 @@ gst_base_rtp_audio_payload_handle_frame_based_buffer (GstBaseRTPPayload *
|
|||
|
||||
/* min number of bytes based on a given ptime, has to be a multiple
|
||||
of frame duration */
|
||||
guint minptime_ms = basertpaudiopayload->priv->min_ptime / 1000000;
|
||||
minptime_ms = basertpaudiopayload->priv->min_ptime / 1000000;
|
||||
|
||||
minptime_octets = frame_size * (int) (minptime_ms / frame_duration);
|
||||
|
||||
|
|
|
@ -32,6 +32,10 @@
|
|||
#include <stdlib.h>
|
||||
#include <math.h>
|
||||
|
||||
#ifndef M_PI
|
||||
#define M_PI 3.14159265358979323846
|
||||
#endif
|
||||
|
||||
static unsigned char
|
||||
random_char (void)
|
||||
{
|
||||
|
|
|
@ -7,6 +7,8 @@ EXPORTS
|
|||
gst_base_rtp_audio_payload_get_type
|
||||
gst_base_rtp_audio_payload_set_frame_based
|
||||
gst_base_rtp_audio_payload_set_frame_options
|
||||
gst_base_rtp_audio_payload_set_sample_based
|
||||
gst_base_rtp_audio_payload_set_sample_options
|
||||
gst_base_rtp_depayload_get_type
|
||||
gst_base_rtp_depayload_push
|
||||
gst_base_rtp_depayload_push_ts
|
||||
|
@ -20,6 +22,7 @@ EXPORTS
|
|||
gst_rtp_buffer_get_payload_subbuffer
|
||||
gst_rtp_buffer_get_payload_type
|
||||
gst_rtp_buffer_get_seq
|
||||
gst_rtp_buffer_get_ssrc
|
||||
gst_rtp_buffer_get_timestamp
|
||||
gst_rtp_buffer_new_allocate
|
||||
gst_rtp_buffer_new_allocate_len
|
||||
|
|
Loading…
Reference in a new issue