Skip to content

Commit

Permalink
DATV demod. final cleanuo, Implements #833
Browse files Browse the repository at this point in the history
  • Loading branch information
f4exb committed Apr 8, 2021
1 parent 64316e5 commit 25a4118
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
9 changes: 3 additions & 6 deletions plugins/channelrx/demoddatv/datvideorender.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -717,21 +717,18 @@ int DATVideoRender::newDecode(AVCodecContext *avctx, AVFrame *frame, int *got_fr
ret = avcodec_send_packet(avctx, pkt);
// In particular, we don't expect AVERROR(EAGAIN), because we read all
// decoded frames with avcodec_receive_frame() until done.
if (ret < 0)
{
if (ret < 0) {
return ret == AVERROR_EOF ? 0 : ret;
}
}

ret = avcodec_receive_frame(avctx, frame);

if (ret < 0 && ret != AVERROR(EAGAIN) && ret != AVERROR_EOF)
{
if (ret < 0 && ret != AVERROR(EAGAIN) && ret != AVERROR_EOF) {
return ret;
}

if (ret >= 0)
{
if (ret >= 0) {
*got_frame = 1;
}

Expand Down
2 changes: 1 addition & 1 deletion sdrbase/webapi/webapiutils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ const QMap<QString, QString> WebAPIUtils::m_sourceDeviceHwIdToActionsKey = {
};

const QMap<QString, QString> WebAPIUtils::m_sinkDeviceHwIdToSettingsKey = {
{"AudioOutput", "AudioOutputSettings"},
{"AudioOutput", "audioOutputSettings"},
{"BladeRF1", "bladeRF1OutputSettings"},
{"BladeRF2", "bladeRF2OutputSettings"},
{"HackRF", "hackRFOutputSettings"},
Expand Down
1 change: 0 additions & 1 deletion sdrgui/gui/tvscreen.h
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ class SDRGUI_API TVScreen: public QGLWidget
QTimer m_timer;
QMutex m_mutex;
bool m_dataChanged;
bool m_configChanged;

GLShaderTVArray m_glShaderArray;

Expand Down

0 comments on commit 25a4118

Please sign in to comment.