desc_es_descriptor_copy_data (ESDescriptor * desc, guint8 ** buffer,
guint64 * size, guint64 * offset)
{
- guint64 desc_size;
guint64 original_offset = *offset;
/* must call this twice to have size fields of all contained descriptors set
* correctly, and to have the size of the size fields taken into account */
- desc_size = desc_es_descriptor_get_size (desc);
- desc_size = desc_es_descriptor_get_size (desc);
+ desc_es_descriptor_get_size (desc);
+ desc_es_descriptor_get_size (desc);
if (!desc_base_descriptor_copy_data (&desc->base, buffer, size, offset)) {
return 0;
gint payload_len;
guint avail;
guint8 *payload;
- guint32 timestamp;
guint8 ver, pck;
gboolean s, q, l, d;
gboolean k, f, a, z;
guint pdlen, pdpadded;
gint padding;
- guint32 media_type, timescale;
+ /* media_type only used for printing */
+ guint32 G_GNUC_UNUSED media_type;
+ guint32 timescale;
/* 1 2 3
* 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
payload_len -= padding;
}
- timestamp = gst_rtp_buffer_get_timestamp (buf);
rtpxqtdepay->previous_id = rtpxqtdepay->current_id;
switch (pck) {
}
case 2:
{
- guint slen, timestamp;
+ guint slen;
/* multiple samples per packet.
* 1 2 3
while (payload_len > 8) {
s = (payload[0] & 0x80) != 0; /* contains sync sample */
slen = (payload[2] << 8) | payload[3];
- timestamp =
- (payload[4] << 24) | (payload[5] << 16) | (payload[6] << 8) |
- payload[7];
+ /* timestamp =
+ * (payload[4] << 24) | (payload[5] << 16) | (payload[6] << 8) |
+ * payload[7];
+ */
payload += 8;
payload_len -= 8;
}
if (demux->mdatbuffer && demux->n_streams) {
- GstBuffer *buf;
-
/* the mdat was before the header */
GST_DEBUG_OBJECT (demux, "We have n_streams:%d and mdatbuffer:%p",
demux->n_streams, demux->mdatbuffer);
/* restore our adapter/offset view of things with upstream;
* put preceding buffered data ahead of current moov data.
* This should also handle evil mdat, moov, mdat cases and alike */
- buf = gst_adapter_take_buffer (demux->adapter,
- gst_adapter_available (demux->adapter));
gst_adapter_clear (demux->adapter);
demux->mdatbuffer = NULL;
demux->offset = demux->mdatoffset;
static gchar *
qtdemux_get_rtsp_uri_from_hndl (GstQTDemux * qtdemux, GNode * minf)
{
- GNode *hndl;
GNode *dinf;
GstByteReader dref;
gchar *uri = NULL;
gst_byte_reader_skip (&dref, 4) &&
gst_byte_reader_get_uint32_be (&dref, &dref_num_entries)) {
gint i;
- hndl = NULL;
/* search dref entries for hndl atom */
for (i = 0; i < dref_num_entries; i++) {