mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-30 11:08:34 +00:00
camerabin: insert a few blank lines for readability
This commit is contained in:
parent
4ab9f800a8
commit
2f93fb8c73
1 changed files with 3 additions and 1 deletions
|
@ -398,6 +398,7 @@ camerabin_video_pad_tee_src0_have_buffer (GstPad * pad, GstBuffer * buffer,
|
||||||
GstEvent *event;
|
GstEvent *event;
|
||||||
GstObject *tee;
|
GstObject *tee;
|
||||||
GstPad *sinkpad;
|
GstPad *sinkpad;
|
||||||
|
|
||||||
vid->adjust_ts_video = GST_BUFFER_TIMESTAMP (buffer) - vid->last_ts_video;
|
vid->adjust_ts_video = GST_BUFFER_TIMESTAMP (buffer) - vid->last_ts_video;
|
||||||
vid->calculate_adjust_ts_video = FALSE;
|
vid->calculate_adjust_ts_video = FALSE;
|
||||||
event = gst_event_new_new_segment (FALSE, 1.0, GST_FORMAT_TIME,
|
event = gst_event_new_new_segment (FALSE, 1.0, GST_FORMAT_TIME,
|
||||||
|
@ -417,7 +418,6 @@ camerabin_video_pad_tee_src0_have_buffer (GstPad * pad, GstBuffer * buffer,
|
||||||
if (GST_BUFFER_DURATION_IS_VALID (buffer))
|
if (GST_BUFFER_DURATION_IS_VALID (buffer))
|
||||||
vid->last_ts_video += GST_BUFFER_DURATION (buffer);
|
vid->last_ts_video += GST_BUFFER_DURATION (buffer);
|
||||||
|
|
||||||
|
|
||||||
GST_LOG ("buffer out with size %d ts %" GST_TIME_FORMAT,
|
GST_LOG ("buffer out with size %d ts %" GST_TIME_FORMAT,
|
||||||
GST_BUFFER_SIZE (buffer), GST_TIME_ARGS (GST_BUFFER_TIMESTAMP (buffer)));
|
GST_BUFFER_SIZE (buffer), GST_TIME_ARGS (GST_BUFFER_TIMESTAMP (buffer)));
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
@ -442,6 +442,7 @@ camerabin_video_pad_aud_src_have_buffer (GstPad * pad, GstBuffer * buffer,
|
||||||
if (vid->calculate_adjust_ts_aud) {
|
if (vid->calculate_adjust_ts_aud) {
|
||||||
GstEvent *event;
|
GstEvent *event;
|
||||||
GstPad *peerpad = NULL;
|
GstPad *peerpad = NULL;
|
||||||
|
|
||||||
vid->adjust_ts_aud = GST_BUFFER_TIMESTAMP (buffer) - vid->last_ts_aud;
|
vid->adjust_ts_aud = GST_BUFFER_TIMESTAMP (buffer) - vid->last_ts_aud;
|
||||||
vid->calculate_adjust_ts_aud = FALSE;
|
vid->calculate_adjust_ts_aud = FALSE;
|
||||||
event = gst_event_new_new_segment (FALSE, 1.0, GST_FORMAT_TIME,
|
event = gst_event_new_new_segment (FALSE, 1.0, GST_FORMAT_TIME,
|
||||||
|
@ -459,6 +460,7 @@ camerabin_video_pad_aud_src_have_buffer (GstPad * pad, GstBuffer * buffer,
|
||||||
vid->last_ts_aud = GST_BUFFER_TIMESTAMP (buffer);
|
vid->last_ts_aud = GST_BUFFER_TIMESTAMP (buffer);
|
||||||
if (GST_BUFFER_DURATION_IS_VALID (buffer))
|
if (GST_BUFFER_DURATION_IS_VALID (buffer))
|
||||||
vid->last_ts_aud += GST_BUFFER_DURATION (buffer);
|
vid->last_ts_aud += GST_BUFFER_DURATION (buffer);
|
||||||
|
|
||||||
GST_LOG ("buffer out with size %d ts %" GST_TIME_FORMAT,
|
GST_LOG ("buffer out with size %d ts %" GST_TIME_FORMAT,
|
||||||
GST_BUFFER_SIZE (buffer), GST_TIME_ARGS (GST_BUFFER_TIMESTAMP (buffer)));
|
GST_BUFFER_SIZE (buffer), GST_TIME_ARGS (GST_BUFFER_TIMESTAMP (buffer)));
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
Loading…
Reference in a new issue