Skip to content

Commit

Permalink
Fix PlaybackSock::GetMaxBitrate protocol usage.
Browse files Browse the repository at this point in the history
QUERY_REMOTEENCODER now returns only one value.  This change was missed
when the protocol was changed to send 64-bit values directly, instead of
encoded as two 32-bit ints (this part, specifically, in 1508085 ).

Signed-off-by: Michael T. Dean <mdean@mythtv.org>
  • Loading branch information
iandall authored and sphery committed May 29, 2012
1 parent 139a98e commit 6911895
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mythtv/programs/mythbackend/playbacksock.cpp
Expand Up @@ -403,7 +403,7 @@ long long PlaybackSock::GetMaxBitrate(int capturecardnum)
QStringList strlist(QString("QUERY_REMOTEENCODER %1").arg(capturecardnum)); QStringList strlist(QString("QUERY_REMOTEENCODER %1").arg(capturecardnum));
strlist << "GET_MAX_BITRATE"; strlist << "GET_MAX_BITRATE";


if (SendReceiveStringList(strlist, 2)) if (SendReceiveStringList(strlist, 1))
return strlist[0].toLongLong(); return strlist[0].toLongLong();


return 20200000LL; // Peak bit rate for HD-PVR return 20200000LL; // Peak bit rate for HD-PVR
Expand Down

0 comments on commit 6911895

Please sign in to comment.