Skip to content

Commit

Permalink
Revert "VideoBuffers: Remove some unused code."
Browse files Browse the repository at this point in the history
This reverts commit 32882b2.
  • Loading branch information
tralph committed May 11, 2011
1 parent 32882b2 commit 5032286
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions mythtv/libs/libmythtv/videobuffers.cpp
Expand Up @@ -1304,6 +1304,10 @@ void VideoBuffers::DeleteBuffers()
} }
} }


for (uint i = 0; i < allocated_structs.size(); i++)
delete allocated_structs[i];
allocated_structs.clear();

for (uint i = 0; i < allocated_arrays.size(); i++) for (uint i = 0; i < allocated_arrays.size(); i++)
av_free(allocated_arrays[i]); av_free(allocated_arrays[i]);
allocated_arrays.clear(); allocated_arrays.clear();
Expand Down
1 change: 1 addition & 0 deletions mythtv/libs/libmythtv/videobuffers.h
Expand Up @@ -171,6 +171,7 @@ class VideoBuffers
frame_queue_t available, used, limbo, pause, displayed, decode, finished; frame_queue_t available, used, limbo, pause, displayed, decode, finished;
vbuffer_map_t vbufferMap; // videobuffers to buffer's index vbuffer_map_t vbufferMap; // videobuffers to buffer's index
frame_vector_t buffers; frame_vector_t buffers;
uchar_vector_t allocated_structs; // for DeleteBuffers
uchar_vector_t allocated_arrays; // for DeleteBuffers uchar_vector_t allocated_arrays; // for DeleteBuffers
frame_map_t parents; // prev & future frames frame_map_t parents; // prev & future frames
frame_map_t children; // frames that depend on a parent frame frame_map_t children; // frames that depend on a parent frame
Expand Down

0 comments on commit 5032286

Please sign in to comment.