/* only mode A should be used when there is a picture start code, but
* buggy payloaders may send mode B/C in start of frame */
if (payload_len > 4 && (GST_READ_UINT32_BE (payload) >> 10 == 0x20)) {
- GST_DEBUG ("Mode %c with PSC => frame start", "ABC"[F+P]);
+ GST_DEBUG ("Mode %c with PSC => frame start", "ABC"[F + P]);
rtph263depay->start = TRUE;
if ((! !(payload[4] & 0x02)) != I) {
GST_DEBUG ("Wrong Picture Coding Type Flag in rtp header");
gst_caps_unref (outcaps);
if (oldcaps)
- gst_caps_unref (oldcaps);
+ gst_caps_unref (oldcaps);
return TRUE;
GstClockTime
rtp_jitter_buffer_calculate_pts (RTPJitterBuffer * jbuf, GstClockTime dts,
- guint32 rtptime, GstClockTime base_time)
+ guint32 rtptime, GstClockTime base_time)
{
guint64 ext_rtptime;
GstClockTime gstrtptime, pts;
if (old == CMD_RECONNECT) {
GST_DEBUG_OBJECT (src, "ignore, we were reconnecting");
cmd = CMD_RECONNECT;
- } else if(old == CMD_CLOSE) {
+ } else if (old == CMD_CLOSE) {
/* our CMD_CLOSE might have interrutped CMD_LOOP. gst_rtspsrc_loop
- * will send a CMD_WAIT which would cancel our pending CMD_CLOSE (if
- * still pending). We just avoid it here by making sure CMD_CLOSE is
- * still the pending command. */
+ * will send a CMD_WAIT which would cancel our pending CMD_CLOSE (if
+ * still pending). We just avoid it here by making sure CMD_CLOSE is
+ * still the pending command. */
GST_DEBUG_OBJECT (src, "ignore, we were closing");
cmd = CMD_CLOSE;
} else if (old != CMD_WAIT) {
GST_OBJECT_LOCK (pool);
gst_v4l2_buffer_pool_streamoff (pool);
/* Remember buffers to re-enqueue */
- memcpy(buffers, pool->buffers, sizeof(buffers));
- memset(pool->buffers, 0, sizeof(pool->buffers));
+ memcpy (buffers, pool->buffers, sizeof (buffers));
+ memset (pool->buffers, 0, sizeof (pool->buffers));
GST_OBJECT_UNLOCK (pool);
/* Reset our state */