diff options
author | prasanth kamuju <prasanth.kamuju@linaro.org> | 2014-08-27 15:22:35 +0530 |
---|---|---|
committer | prasanth kamuju <prasanth.kamuju@linaro.org> | 2014-08-27 15:22:35 +0530 |
commit | 70d5968f09766c733e4e868864254b0eb379a567 (patch) | |
tree | e386f8c7e4c4745183d9f2ad96f1c5f60f59dcab | |
parent | 4f96169ea0323981b378d64b8d9cbb6980d686c9 (diff) |
Adding video shared libs in the Makefile
-rw-r--r-- | src/Makefile.am | 5 | ||||
-rw-r--r-- | src/gstqcvideodec.c | 66 |
2 files changed, 60 insertions, 11 deletions
diff --git a/src/Makefile.am b/src/Makefile.am index b2d6c7e..7664565 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -19,9 +19,8 @@ libgstqcvideodec_la_SOURCES = queue.c message_queue.c gstqcvideodec.c gstqcvideo # compiler and linker flags used to compile this plugin, set in configure.ac libgstqcvideodec_la_CFLAGS = $(GST_CFLAGS) libgstqcvideodec_la_LIBADD = \ - /home/prasanth/Configure_Install/lib/libgstvideo-1.0.la\ - /home/prasanth/Configure_Install/lib/libgsttag-1.0.la\ - $(GST_LIBS) + -lgstvideo-1.0 \ + $(GST_LIBS) libgstqcvideodec_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS) libgstqcvideodec_la_LIBTOOLFLAGS = --tag=disable-static diff --git a/src/gstqcvideodec.c b/src/gstqcvideodec.c index 10af690..0ed76b2 100644 --- a/src/gstqcvideodec.c +++ b/src/gstqcvideodec.c @@ -1120,6 +1120,8 @@ static void* video_thread (Gstqcvideodec *decoder_cxt) GstBuffer *outbuf = NULL; GstMemory *memory; GstMapInfo info; + GstFlowReturn ret = GST_FLOW_OK; + int leng = 0; // guint8 *ptr; Gstqcvideodec *decode_context = GST_QCVIDEODEC (decoder_cxt); @@ -1187,6 +1189,7 @@ static void* video_thread (Gstqcvideodec *decoder_cxt) case VDEC_MSG_RESP_OUTPUT_BUFFER_DONE: // g_print("\n\nVDEC_MSG_RESP_OUTPUT_BUFFER_DONE in video thread # 1\n"); + outputbuffer = (struct vdec_output_frameinfo *)\ queueitem->clientdata; if (outputbuffer == NULL || outputbuffer->bufferaddr == NULL || @@ -1214,21 +1217,68 @@ static void* video_thread (Gstqcvideodec *decoder_cxt) break; } // if(outbuf == NULL) + if(gst_pad_is_linked (decode_context->srcpad) != TRUE) + { + g_print("\n ----- pad is not linked ----\n"); + } { outbuf = gst_buffer_new(); memory = gst_allocator_alloc (NULL, outputbuffer->len, NULL); gst_buffer_append_memory(outbuf, memory); + leng = gst_buffer_get_size(outbuf); + g_print("\n--------------------------11111 leng = %d\n",leng); } - // g_print("\n\nVDEC_MSG_RESP_OUTPUT_BUFFER_DONE in video thread # 2\n"); - /* get WRITE access to the memory and fill with 0xff */ gst_buffer_map (outbuf, &info, GST_MAP_WRITE); memcpy (info.data, outputbuffer->bufferaddr, info.size); - gst_buffer_unmap (outbuf, &info); - // gst_buffer_insert_memory (outbuf, -1, memory); - // g_print("\n\nVDEC_MSG_RESP_OUTPUT_BUFFER_DONE in video thread # 3\n"); - // gst_buffer_fill (outbuf,0,outputbuffer->bufferaddr,outputbuffer->len); - gst_pad_push (decode_context->srcpad, outbuf); - gst_buffer_unref (outbuf); + leng = gst_buffer_get_size(outbuf); + gst_buffer_ref(outbuf); + ret = gst_pad_push (decode_context->srcpad, outbuf); + + gst_buffer_unmap(outbuf, &info); + { + g_print("\n--------------------------22222 GST_FLOW_NOT_OK : %d and leng = %d\n",ret,leng); + } + if(ret == GST_FLOW_CUSTOM_SUCCESS_2) + { + g_print("\n-------------------------- GST_FLOW_CUSTOM_SUCCESS_2 \n"); + } +if(ret == GST_FLOW_CUSTOM_SUCCESS_1) + { + g_print("\n-------------------------- GST_FLOW_CUSTOM_SUCCESS_1 \n"); + } +if(ret == GST_FLOW_CUSTOM_SUCCESS) + { + g_print("\n-------------------------- GST_FLOW_CUSTOM_SUCCESS \n"); + } +if(ret == GST_FLOW_OK) + { + g_print("\n-------------------------- GST_FLOW_OK \n"); + } +if(ret == GST_FLOW_NOT_LINKED) + { + g_print("\n-------------------------- GST_FLOW_NOT_LINKED \n"); + } +if(ret == GST_FLOW_FLUSHING) + { + g_print("\n-------------------------- GST_FLOW_FLUSHING \n"); + } +if(ret == GST_FLOW_EOS) + { + g_print("\n-------------------------- GST_FLOW_EOS \n"); + } +if(ret == GST_FLOW_NOT_NEGOTIATED) + { + g_print("\n-------------------------- GST_FLOW_NOT_NEGOTIATED \n"); + } +if(ret == GST_FLOW_ERROR) + { + g_print("\n-------------------------- GST_FLOW_ERROR \n"); + } +if(ret == GST_FLOW_NOT_SUPPORTED) + { + g_print("\n-------------------------- GST_FLOW_NOT_SUPPORTED \n"); + } + gst_buffer_unref (outbuf); /* We need to copy the size and offset of the buffer at a minimum. */ // GST_BUFFER_SIZE (outbuf) = outputbuffer->len; // GST_BUFFER_OFFSET (outbuf) = 0; |