aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llmedia/llmediaimplgstreamervidplug.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2009-04-30 13:04:20 -0500
committerJacek Antonelli2009-04-30 13:07:16 -0500
commitca8149ca6d157eb4b5fc8ba0e5ba3a6e56f72e7e (patch)
tree8348301d0ac44a524f1819b777686bf086907d76 /linden/indra/llmedia/llmediaimplgstreamervidplug.cpp
parentSecond Life viewer sources 1.22.11 (diff)
downloadmeta-impy-ca8149ca6d157eb4b5fc8ba0e5ba3a6e56f72e7e.zip
meta-impy-ca8149ca6d157eb4b5fc8ba0e5ba3a6e56f72e7e.tar.gz
meta-impy-ca8149ca6d157eb4b5fc8ba0e5ba3a6e56f72e7e.tar.bz2
meta-impy-ca8149ca6d157eb4b5fc8ba0e5ba3a6e56f72e7e.tar.xz
Second Life viewer sources 1.23.0-RC
Diffstat (limited to 'linden/indra/llmedia/llmediaimplgstreamervidplug.cpp')
-rw-r--r--linden/indra/llmedia/llmediaimplgstreamervidplug.cpp43
1 files changed, 19 insertions, 24 deletions
diff --git a/linden/indra/llmedia/llmediaimplgstreamervidplug.cpp b/linden/indra/llmedia/llmediaimplgstreamervidplug.cpp
index dc3fe61..5e96666 100644
--- a/linden/indra/llmedia/llmediaimplgstreamervidplug.cpp
+++ b/linden/indra/llmedia/llmediaimplgstreamervidplug.cpp
@@ -17,7 +17,8 @@
17 * There are special exceptions to the terms and conditions of the GPL as 17 * There are special exceptions to the terms and conditions of the GPL as
18 * it is applied to this Source Code. View the full text of the exception 18 * it is applied to this Source Code. View the full text of the exception
19 * in the file doc/FLOSS-exception.txt in this software distribution, or 19 * in the file doc/FLOSS-exception.txt in this software distribution, or
20 * online at http://secondlifegrid.net/programs/open_source/licensing/flossexception 20 * online at
21 * http://secondlifegrid.net/programs/open_source/licensing/flossexception
21 * 22 *
22 * By copying, modifying or distributing this software, you acknowledge 23 * By copying, modifying or distributing this software, you acknowledge
23 * that you have read and understood your obligations described above, 24 * that you have read and understood your obligations described above,
@@ -81,10 +82,10 @@ static void
81gst_slvideo_base_init (gpointer gclass) 82gst_slvideo_base_init (gpointer gclass)
82{ 83{
83 static GstElementDetails element_details = { 84 static GstElementDetails element_details = {
84 "PluginTemplate", 85 (gchar*)"PluginTemplate",
85 "Generic/PluginTemplate", 86 (gchar*)"Generic/PluginTemplate",
86 "Generic Template Element", 87 (gchar*)"Generic Template Element",
87 "Linden Lab" 88 (gchar*)"Linden Lab"
88 }; 89 };
89 GstElementClass *element_class = GST_ELEMENT_CLASS (gclass); 90 GstElementClass *element_class = GST_ELEMENT_CLASS (gclass);
90 91
@@ -317,14 +318,6 @@ gst_slvideo_stop (GstBaseSink * bsink)
317} 318}
318 319
319 320
320static gboolean
321gst_slvideo_unlock (GstBaseSink * bsink)
322{
323 // nothing really to do here.
324 return TRUE;
325}
326
327
328/* initialize the plugin's class */ 321/* initialize the plugin's class */
329static void 322static void
330gst_slvideo_class_init (GstSLVideoClass * klass) 323gst_slvideo_class_init (GstSLVideoClass * klass)
@@ -343,17 +336,19 @@ gst_slvideo_class_init (GstSLVideoClass * klass)
343 336
344 gstelement_class->change_state = gst_slvideo_change_state; 337 gstelement_class->change_state = gst_slvideo_change_state;
345 338
346 gstbasesink_class->get_caps = GST_DEBUG_FUNCPTR (gst_slvideo_get_caps); 339#define LLGST_DEBUG_FUNCPTR(p) (p)
347 gstbasesink_class->set_caps = GST_DEBUG_FUNCPTR( gst_slvideo_set_caps); 340 gstbasesink_class->get_caps = LLGST_DEBUG_FUNCPTR (gst_slvideo_get_caps);
348 //gstbasesink_class->buffer_alloc=GST_DEBUG_FUNCPTR(gst_slvideo_buffer_alloc); 341 gstbasesink_class->set_caps = LLGST_DEBUG_FUNCPTR( gst_slvideo_set_caps);
349 //gstbasesink_class->get_times = GST_DEBUG_FUNCPTR (gst_slvideo_get_times); 342 //gstbasesink_class->buffer_alloc=LLGST_DEBUG_FUNCPTR(gst_slvideo_buffer_alloc);
350 gstbasesink_class->preroll = GST_DEBUG_FUNCPTR (gst_slvideo_show_frame); 343 //gstbasesink_class->get_times = LLGST_DEBUG_FUNCPTR (gst_slvideo_get_times);
351 gstbasesink_class->render = GST_DEBUG_FUNCPTR (gst_slvideo_show_frame); 344 gstbasesink_class->preroll = LLGST_DEBUG_FUNCPTR (gst_slvideo_show_frame);
345 gstbasesink_class->render = LLGST_DEBUG_FUNCPTR (gst_slvideo_show_frame);
352 346
353 gstbasesink_class->start = GST_DEBUG_FUNCPTR (gst_slvideo_start); 347 gstbasesink_class->start = LLGST_DEBUG_FUNCPTR (gst_slvideo_start);
354 gstbasesink_class->stop = GST_DEBUG_FUNCPTR (gst_slvideo_stop); 348 gstbasesink_class->stop = LLGST_DEBUG_FUNCPTR (gst_slvideo_stop);
355 349
356 gstbasesink_class->unlock = GST_DEBUG_FUNCPTR (gst_slvideo_unlock); 350 // gstbasesink_class->unlock = LLGST_DEBUG_FUNCPTR (gst_slvideo_unlock);
351#undef LLGST_DEBUG_FUNCPTR
357} 352}
358 353
359 354
@@ -433,8 +428,8 @@ plugin_init (GstPlugin * plugin)
433{ 428{
434 //fprintf(stderr, "\n\n\nPLUGIN INIT\n\n\n"); 429 //fprintf(stderr, "\n\n\nPLUGIN INIT\n\n\n");
435 430
436 GST_DEBUG_CATEGORY_INIT (gst_slvideo_debug, "private-slvideo-plugin", 431 GST_DEBUG_CATEGORY_INIT (gst_slvideo_debug, (gchar*)"private-slvideo-plugin",
437 0, "Second Life Video Sink"); 432 0, (gchar*)"Second Life Video Sink");
438 433
439 return llgst_element_register (plugin, "private-slvideo", 434 return llgst_element_register (plugin, "private-slvideo",
440 GST_RANK_NONE, GST_TYPE_SLVIDEO); 435 GST_RANK_NONE, GST_TYPE_SLVIDEO);