Fix indentation

This commit is contained in:
Tim-Philipp Müller 2017-01-09 19:02:57 +00:00
parent 57e1e5921e
commit bbed5a5ffc
4 changed files with 35 additions and 31 deletions

View file

@ -1051,7 +1051,8 @@ GST_START_TEST (audiodecoder_plc_on_gap_event)
mess with the timestamps */ mess with the timestamps */
GstClockTime pts; GstClockTime pts;
GstClockTime dur = gst_util_uint64_scale_round (1, GST_SECOND, TEST_MSECS_PER_SAMPLE); GstClockTime dur =
gst_util_uint64_scale_round (1, GST_SECOND, TEST_MSECS_PER_SAMPLE);
GstBuffer *buf; GstBuffer *buf;
GstHarness *h = setup_audiodecodertester (NULL, NULL); GstHarness *h = setup_audiodecodertester (NULL, NULL);
gst_audio_decoder_set_plc_aware (GST_AUDIO_DECODER (h->element), TRUE); gst_audio_decoder_set_plc_aware (GST_AUDIO_DECODER (h->element), TRUE);
@ -1084,6 +1085,7 @@ GST_START_TEST (audiodecoder_plc_on_gap_event)
gst_buffer_unref (buf); gst_buffer_unref (buf);
gst_harness_teardown (h); gst_harness_teardown (h);
} }
GST_END_TEST; GST_END_TEST;
GST_START_TEST (audiodecoder_plc_on_gap_event_with_delay) GST_START_TEST (audiodecoder_plc_on_gap_event_with_delay)
@ -1092,7 +1094,8 @@ GST_START_TEST (audiodecoder_plc_on_gap_event_with_delay)
subclass delays the decoding subclass delays the decoding
*/ */
GstClockTime pts0, pts1; GstClockTime pts0, pts1;
GstClockTime dur = gst_util_uint64_scale_round (1, GST_SECOND, TEST_MSECS_PER_SAMPLE); GstClockTime dur =
gst_util_uint64_scale_round (1, GST_SECOND, TEST_MSECS_PER_SAMPLE);
GstBuffer *buf; GstBuffer *buf;
GstHarness *h = setup_audiodecodertester (NULL, NULL); GstHarness *h = setup_audiodecodertester (NULL, NULL);
gst_audio_decoder_set_plc_aware (GST_AUDIO_DECODER (h->element), TRUE); gst_audio_decoder_set_plc_aware (GST_AUDIO_DECODER (h->element), TRUE);
@ -1128,6 +1131,7 @@ GST_START_TEST (audiodecoder_plc_on_gap_event_with_delay)
gst_buffer_unref (buf); gst_buffer_unref (buf);
gst_harness_teardown (h); gst_harness_teardown (h);
} }
GST_END_TEST; GST_END_TEST;
static Suite * static Suite *

View file

@ -47,6 +47,7 @@
#include <gst/check/gstcheck.h> #include <gst/check/gstcheck.h>
#include <gst/sdp/gstsdpmessage.h> #include <gst/sdp/gstsdpmessage.h>
/* *INDENT-OFF* */
static const gchar *sdp = "v=0\r\n" static const gchar *sdp = "v=0\r\n"
"o=- 123456 0 IN IP4 127.0.0.1\r\n" "o=- 123456 0 IN IP4 127.0.0.1\r\n"
"s=TestSessionToCopy\r\n" "s=TestSessionToCopy\r\n"
@ -59,7 +60,9 @@ static const gchar *sdp = "v=0\r\n"
"a=sendrecv\r\n" "a=sendrecv\r\n"
"m=video 6565 RTP/AVP 98\r\n" "m=video 6565 RTP/AVP 98\r\n"
"a=rtpmap:98 VP8/90000\r\n" "a=rtpmap:98 VP8/90000\r\n"
"a=sendrecv\r\n" "m=audio 4545 RTP/AVP 14\r\n" "a=sendrecv\r\n" "a=sendrecv\r\n"
"m=audio 4545 RTP/AVP 14\r\n"
"a=sendrecv\r\n"
"m=audio 1010 TCP 14\r\n"; "m=audio 1010 TCP 14\r\n";
static const gchar caps_video_string1[] = static const gchar caps_video_string1[] =
@ -120,7 +123,8 @@ static const gchar *sdp_rtcp_fb_all = "v=0\r\n"
"a=rtcp-fb:* nack pli\r\n" "a=rtcp-fb:* nack pli\r\n"
"a=rtcp-fb:100 ccm fir\r\n" "a=rtcp-fb:100 ccm fir\r\n"
"a=rtpmap:101 VP9/90000\r\n" "a=rtpmap:101 VP9/90000\r\n"
"a=rtcp-fb:101 ccm fir\r\n" "a=rtpmap:102 H264/90000\r\n"; "a=rtcp-fb:101 ccm fir\r\n"
"a=rtpmap:102 H264/90000\r\n";
static const gchar caps_video_rtcp_fb_all_pt_100[] = static const gchar caps_video_rtcp_fb_all_pt_100[] =
"application/x-unknown, media=(string)video, payload=(int)100, " "application/x-unknown, media=(string)video, payload=(int)100, "
@ -139,6 +143,7 @@ static const gchar caps_video_rtcp_fb_all_pt_102[] =
"clock-rate=(int)90000, encoding-name=(string)H264, " "clock-rate=(int)90000, encoding-name=(string)H264, "
"rtcp-fb-nack=(boolean)true, rtcp-fb-nack-pli=(boolean)true"; "rtcp-fb-nack=(boolean)true, rtcp-fb-nack-pli=(boolean)true";
/* *INDENT-ON* */
GST_START_TEST (boxed) GST_START_TEST (boxed)
{ {

View file

@ -1083,21 +1083,16 @@ GST_END_TEST;
static const gchar *test_default_caps[][2] = { static const gchar *test_default_caps[][2] = {
{ {
"video/x-test-custom", "video/x-test-custom",
"video/x-raw, format=I420, width=1280, height=720, framerate=0/1" "video/x-raw, format=I420, width=1280, height=720, framerate=0/1"}, {
}, {
"video/x-test-custom, width=1000", "video/x-test-custom, width=1000",
"video/x-raw, format=I420, width=1000, height=720, framerate=0/1" "video/x-raw, format=I420, width=1000, height=720, framerate=0/1"}, {
}, {
"video/x-test-custom, height=500", "video/x-test-custom, height=500",
"video/x-raw, format=I420, width=1280, height=500, framerate=0/1" "video/x-raw, format=I420, width=1280, height=500, framerate=0/1"}, {
}, {
"video/x-test-custom, framerate=10/1", "video/x-test-custom, framerate=10/1",
"video/x-raw, format=I420, width=1280, height=720, framerate=10/1" "video/x-raw, format=I420, width=1280, height=720, framerate=10/1"}, {
}, {
"video/x-test-custom, pixel-aspect-ratio=2/1", "video/x-test-custom, pixel-aspect-ratio=2/1",
"video/x-raw, format=I420, width=1280, height=720, framerate=0/1," "video/x-raw, format=I420, width=1280, height=720, framerate=0/1,"
"pixel-aspect-ratio=2/1" "pixel-aspect-ratio=2/1"}
}
}; };
GST_START_TEST (videodecoder_default_caps_on_gap_before_buffer) GST_START_TEST (videodecoder_default_caps_on_gap_before_buffer)