--- src/gstbcmdec.c 2010-12-06 22:36:34.000000000 +0100 +++ src/gstbcmdec.c 2011-05-04 18:00:13.558917747 +0200 @@ -362,9 +362,8 @@ static GstCaps *gst_bcmdec_getcaps (GstPad * pad) { - GstBcmDec *bcmdec; GstCaps *caps; - bcmdec = GST_BCMDEC(gst_pad_get_parent(pad)); + GST_BCMDEC(gst_pad_get_parent(pad)); caps = gst_caps_copy (gst_pad_get_pad_template_caps (pad)); @@ -624,7 +623,6 @@ { GstBcmDec *bcmdec; // BC_STATUS sts = BC_STS_SUCCESS; - guint32 buf_sz = 0; guint32 offset = 0; GstClockTime tCurrent = 0; guint8 *pbuffer; @@ -655,7 +653,6 @@ } tCurrent = GST_BUFFER_TIMESTAMP(buf); } - buf_sz = GST_BUFFER_SIZE(buf); if (bcmdec->play_pending) { bcmdec->play_pending = FALSE; @@ -697,7 +694,6 @@ static gboolean bcmdec_negotiate_format(GstBcmDec *bcmdec) { GstCaps *caps; - guint32 fourcc; gboolean result; guint num = (guint)(bcmdec->output_params.framerate * 1000); guint den = 1000; @@ -706,10 +702,8 @@ GstVideoFormat vidFmt; #ifdef YV12__ - fourcc = GST_STR_FOURCC("YV12"); vidFmt = GST_VIDEO_FORMAT_YV12; #else - fourcc = GST_STR_FOURCC("YUY2"); vidFmt = GST_VIDEO_FORMAT_YUY2; #endif GST_DEBUG_OBJECT(bcmdec, "framerate = %f", bcmdec->output_params.framerate); @@ -858,8 +852,6 @@ GstStateChangeReturn result = GST_STATE_CHANGE_SUCCESS; GstBcmDec *bcmdec = GST_BCMDEC(element); BC_STATUS sts = BC_STS_SUCCESS; - GstClockTime clock_time; - GstClockTime base_clock_time; int ret = 0; switch (transition) { @@ -904,9 +896,9 @@ bcmdec->gst_clock = gst_element_get_clock(element); if (bcmdec->gst_clock) { //printf("clock available %p\n",bcmdec->gst_clock); - base_clock_time = gst_element_get_base_time(element); + //base_clock_time = gst_element_get_base_time(element); //printf("base clock time %lld\n",base_clock_time); - clock_time = gst_clock_get_time(bcmdec->gst_clock); + //clock_time = gst_clock_get_time(bcmdec->gst_clock); //printf(" clock time %lld\n",clock_time); } break;