History

decklink: Remove unneeded spaces in initializers

Patrick Felt committed 10 years ago

Commit e9659d11 parent e0b8cba3 files · +27 −27Browse files

Showing the changes to libavdevice/decklink_dec.cpp (1 of 3 files). Show all

Unified · Split

libavdevice/decklink_dec.cpp+9−9
@@ -206,8 +206,8 @@ private: · 205 unmodified lines
206decklink_input_callback::decklink_input_callback(AVFormatContext *_avctx) : m_refCount(0)206decklink_input_callback::decklink_input_callback(AVFormatContext *_avctx) : m_refCount(0)
207{207{
208 avctx = _avctx;208 avctx = _avctx;
209 decklink_cctx *cctx = (struct decklink_cctx *) avctx->priv_data;209 decklink_cctx *cctx = (struct decklink_cctx *)avctx->priv_data;
210 ctx = (struct decklink_ctx *) cctx->ctx;210 ctx = (struct decklink_ctx *)cctx->ctx;
211 initial_audio_pts = initial_video_pts = AV_NOPTS_VALUE;211 initial_audio_pts = initial_video_pts = AV_NOPTS_VALUE;
212 pthread_mutex_init(&m_mutex, NULL);212 pthread_mutex_init(&m_mutex, NULL);
213}213}
@@ -431,8 +431,8 @@ HRESULT decklink_input_callback::VideoInputFormatChanged( · 217 unmodified lines
431 431
432static HRESULT decklink_start_input(AVFormatContext *avctx)432static HRESULT decklink_start_input(AVFormatContext *avctx)
433{433{
434 struct decklink_cctx *cctx = (struct decklink_cctx *) avctx->priv_data;434 struct decklink_cctx *cctx = (struct decklink_cctx *)avctx->priv_data;
435 struct decklink_ctx *ctx = (struct decklink_ctx *) cctx->ctx;435 struct decklink_ctx *ctx = (struct decklink_ctx *)cctx->ctx;
436 436
437 ctx->input_callback = new decklink_input_callback(avctx);437 ctx->input_callback = new decklink_input_callback(avctx);
438 ctx->dli->SetCallback(ctx->input_callback);438 ctx->dli->SetCallback(ctx->input_callback);
@@ -443,8 +443,8 @@ extern "C" { · 4 unmodified lines
443 443
444av_cold int ff_decklink_read_close(AVFormatContext *avctx)444av_cold int ff_decklink_read_close(AVFormatContext *avctx)
445{445{
446 struct decklink_cctx *cctx = (struct decklink_cctx *) avctx->priv_data;446 struct decklink_cctx *cctx = (struct decklink_cctx *)avctx->priv_data;
447 struct decklink_ctx *ctx = (struct decklink_ctx *) cctx->ctx;447 struct decklink_ctx *ctx = (struct decklink_ctx *)cctx->ctx;
448 448
449 if (ctx->capture_started) {449 if (ctx->capture_started) {
450 ctx->dli->StopStreams();450 ctx->dli->StopStreams();
@@ -462,7 +462,7 @@ av_cold int ff_decklink_read_close(AVFormatContext *avctx) · 11 unmodified lines
462 462
463av_cold int ff_decklink_read_header(AVFormatContext *avctx)463av_cold int ff_decklink_read_header(AVFormatContext *avctx)
464{464{
465 struct decklink_cctx *cctx = (struct decklink_cctx *) avctx->priv_data;465 struct decklink_cctx *cctx = (struct decklink_cctx *)avctx->priv_data;
466 struct decklink_ctx *ctx;466 struct decklink_ctx *ctx;
467 AVStream *st;467 AVStream *st;
468 HRESULT result;468 HRESULT result;
@@ -638,8 +638,8 @@ error: · 169 unmodified lines
638 638
639int ff_decklink_read_packet(AVFormatContext *avctx, AVPacket *pkt)639int ff_decklink_read_packet(AVFormatContext *avctx, AVPacket *pkt)
640{640{
641 struct decklink_cctx *cctx = (struct decklink_cctx *) avctx->priv_data;641 struct decklink_cctx *cctx = (struct decklink_cctx *)avctx->priv_data;
642 struct decklink_ctx *ctx = (struct decklink_ctx *) cctx->ctx;642 struct decklink_ctx *ctx = (struct decklink_ctx *)cctx->ctx;
643 AVFrame *frame = ctx->video_st->codec->coded_frame;643 AVFrame *frame = ctx->video_st->codec->coded_frame;
644 644
645 avpacket_queue_get(&ctx->queue, pkt, 1);645 avpacket_queue_get(&ctx->queue, pkt, 1);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t