|
@@ -282,13 +282,12 @@ void StreamNode::process_stream_gpu()
|
|
|
{
|
|
|
// Timer timer("StreamNode GPU Frame"); // If using Timer utility
|
|
|
uint8_t* frame_data = nullptr;
|
|
|
- int current_frame_index = -1; // Use a local variable for the index from get_frame
|
|
|
int64_t frame_pts = 0;
|
|
|
|
|
|
try
|
|
|
{
|
|
|
// Pass pointers to get the actual index and PTS for the current frame
|
|
|
- frame_data = decoder_->get_frame(&frame_pts, ¤t_frame_index);
|
|
|
+ frame_data = decoder_->get_frame(&frame_pts, &frame_index);
|
|
|
}
|
|
|
catch (const std::exception& ex) { // Catch potential exceptions from get_frame implementation
|
|
|
fprintf(stderr, "StreamNode [%s] Error: Exception during decoder_->get_frame(): %s\n", name_.c_str(), ex.what());
|