mirror of
https://github.com/moonlight-stream/moonlight-ios.git
synced 2026-06-18 06:31:05 +00:00
Plumb the presentation time from the server into the renderer
This commit is contained in:
@@ -71,7 +71,10 @@ int DrSubmitDecodeUnit(PDECODE_UNIT decodeUnit)
|
|||||||
while (entry != NULL) {
|
while (entry != NULL) {
|
||||||
// Submit parameter set NALUs directly since no copy is required by the decoder
|
// Submit parameter set NALUs directly since no copy is required by the decoder
|
||||||
if (entry->bufferType != BUFFER_TYPE_PICDATA) {
|
if (entry->bufferType != BUFFER_TYPE_PICDATA) {
|
||||||
ret = [renderer submitDecodeBuffer:(unsigned char*)entry->data length:entry->length bufferType:entry->bufferType];
|
ret = [renderer submitDecodeBuffer:(unsigned char*)entry->data
|
||||||
|
length:entry->length
|
||||||
|
bufferType:entry->bufferType
|
||||||
|
pts:decodeUnit->presentationTimeMs];
|
||||||
if (ret != DR_OK) {
|
if (ret != DR_OK) {
|
||||||
free(data);
|
free(data);
|
||||||
return ret;
|
return ret;
|
||||||
@@ -86,7 +89,10 @@ int DrSubmitDecodeUnit(PDECODE_UNIT decodeUnit)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// This function will take our picture data buffer
|
// This function will take our picture data buffer
|
||||||
return [renderer submitDecodeBuffer:data length:offset bufferType:BUFFER_TYPE_PICDATA];
|
return [renderer submitDecodeBuffer:data
|
||||||
|
length:offset
|
||||||
|
bufferType:BUFFER_TYPE_PICDATA
|
||||||
|
pts:decodeUnit->presentationTimeMs];
|
||||||
}
|
}
|
||||||
|
|
||||||
int ArInit(int audioConfiguration, POPUS_MULTISTREAM_CONFIGURATION opusConfig, void* context, int flags)
|
int ArInit(int audioConfiguration, POPUS_MULTISTREAM_CONFIGURATION opusConfig, void* context, int flags)
|
||||||
|
|||||||
@@ -18,6 +18,6 @@
|
|||||||
|
|
||||||
- (void)updateBufferForRange:(CMBlockBufferRef)existingBuffer data:(unsigned char *)data offset:(int)offset length:(int)nalLength;
|
- (void)updateBufferForRange:(CMBlockBufferRef)existingBuffer data:(unsigned char *)data offset:(int)offset length:(int)nalLength;
|
||||||
|
|
||||||
- (int)submitDecodeBuffer:(unsigned char *)data length:(int)length bufferType:(int)bufferType;
|
- (int)submitDecodeBuffer:(unsigned char *)data length:(int)length bufferType:(int)bufferType pts:(unsigned int)pts;
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|||||||
@@ -201,7 +201,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
// This function must free data for bufferType == BUFFER_TYPE_PICDATA
|
// This function must free data for bufferType == BUFFER_TYPE_PICDATA
|
||||||
- (int)submitDecodeBuffer:(unsigned char *)data length:(int)length bufferType:(int)bufferType
|
- (int)submitDecodeBuffer:(unsigned char *)data length:(int)length bufferType:(int)bufferType pts:(unsigned int)pts
|
||||||
{
|
{
|
||||||
unsigned char nalType = data[FRAME_START_PREFIX_SIZE];
|
unsigned char nalType = data[FRAME_START_PREFIX_SIZE];
|
||||||
OSStatus status;
|
OSStatus status;
|
||||||
|
|||||||
Submodule moonlight-common/moonlight-common-c updated: 49fd1bed3f...f4dad9ae8b
Reference in New Issue
Block a user