aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llmedia/llmediaimplgstreamervidplug.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/llmedia/llmediaimplgstreamervidplug.cpp')
-rw-r--r--linden/indra/llmedia/llmediaimplgstreamervidplug.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/linden/indra/llmedia/llmediaimplgstreamervidplug.cpp b/linden/indra/llmedia/llmediaimplgstreamervidplug.cpp
index 7c59caf..f9c2f89 100644
--- a/linden/indra/llmedia/llmediaimplgstreamervidplug.cpp
+++ b/linden/indra/llmedia/llmediaimplgstreamervidplug.cpp
@@ -137,7 +137,7 @@ gst_slvideo_show_frame (GstBaseSink * bsink, GstBuffer * buf)
137 if (needbytes != slvideo->retained_frame_allocbytes) 137 if (needbytes != slvideo->retained_frame_allocbytes)
138 { 138 {
139 delete[] slvideo->retained_frame_data; 139 delete[] slvideo->retained_frame_data;
140 slvideo->retained_frame_data = new U8[needbytes]; 140 slvideo->retained_frame_data = new unsigned char[needbytes];
141 slvideo->retained_frame_allocbytes = needbytes; 141 slvideo->retained_frame_allocbytes = needbytes;
142 142
143 } 143 }
@@ -146,7 +146,7 @@ gst_slvideo_show_frame (GstBaseSink * bsink, GstBuffer * buf)
146 for (int ypos=0; ypos<slvideo->height; ++ypos) 146 for (int ypos=0; ypos<slvideo->height; ++ypos)
147 { 147 {
148 memcpy(&slvideo->retained_frame_data[(slvideo->height-1-ypos)*rowbytes], 148 memcpy(&slvideo->retained_frame_data[(slvideo->height-1-ypos)*rowbytes],
149 &(((U8*)GST_BUFFER_DATA(buf))[ypos*rowbytes]), 149 &(((unsigned char*)GST_BUFFER_DATA(buf))[ypos*rowbytes]),
150 rowbytes); 150 rowbytes);
151 } 151 }
152 // done with the shared data 152 // done with the shared data