mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 15:51:11 +00:00
vdpau: fix some variable-set-but-unused compiler warnings
This commit is contained in:
parent
d439f2d38d
commit
1972c26bde
5 changed files with 3 additions and 21 deletions
|
@ -266,12 +266,9 @@ static gboolean
|
|||
gst_base_video_decoder_sink_event (GstPad * pad, GstEvent * event)
|
||||
{
|
||||
GstBaseVideoDecoder *base_video_decoder;
|
||||
GstBaseVideoDecoderClass *base_video_decoder_class;
|
||||
gboolean res = FALSE;
|
||||
|
||||
base_video_decoder = GST_BASE_VIDEO_DECODER (gst_pad_get_parent (pad));
|
||||
base_video_decoder_class =
|
||||
GST_BASE_VIDEO_DECODER_GET_CLASS (base_video_decoder);
|
||||
|
||||
switch (GST_EVENT_TYPE (event)) {
|
||||
case GST_EVENT_EOS:
|
||||
|
@ -634,7 +631,6 @@ static GstFlowReturn
|
|||
gst_base_video_decoder_chain (GstPad * pad, GstBuffer * buf)
|
||||
{
|
||||
GstBaseVideoDecoder *base_video_decoder;
|
||||
GstBaseVideoDecoderClass *base_video_decoder_class;
|
||||
GstFlowReturn ret;
|
||||
|
||||
GST_DEBUG ("chain %" GST_TIME_FORMAT " duration %" GST_TIME_FORMAT,
|
||||
|
@ -651,8 +647,6 @@ gst_base_video_decoder_chain (GstPad * pad, GstBuffer * buf)
|
|||
#endif
|
||||
|
||||
base_video_decoder = GST_BASE_VIDEO_DECODER (gst_pad_get_parent (pad));
|
||||
base_video_decoder_class =
|
||||
GST_BASE_VIDEO_DECODER_GET_CLASS (base_video_decoder);
|
||||
|
||||
GST_DEBUG_OBJECT (base_video_decoder, "chain");
|
||||
|
||||
|
@ -968,16 +962,11 @@ void
|
|||
gst_base_video_decoder_skip_frame (GstBaseVideoDecoder * base_video_decoder,
|
||||
GstVideoFrame * frame)
|
||||
{
|
||||
GstBaseVideoDecoderClass *base_video_decoder_class;
|
||||
|
||||
GstClockTime presentation_timestamp;
|
||||
GstClockTime presentation_duration;
|
||||
|
||||
GST_DEBUG ("skip frame");
|
||||
|
||||
base_video_decoder_class =
|
||||
GST_BASE_VIDEO_DECODER_GET_CLASS (base_video_decoder);
|
||||
|
||||
gst_base_video_decoder_calculate_timestamps (base_video_decoder, frame,
|
||||
&presentation_timestamp, &presentation_duration);
|
||||
|
||||
|
@ -1112,11 +1101,9 @@ static void
|
|||
gst_base_video_decoder_finalize (GObject * object)
|
||||
{
|
||||
GstBaseVideoDecoder *base_video_decoder;
|
||||
GstBaseVideoDecoderClass *base_video_decoder_class;
|
||||
|
||||
g_return_if_fail (GST_IS_BASE_VIDEO_DECODER (object));
|
||||
base_video_decoder = GST_BASE_VIDEO_DECODER (object);
|
||||
base_video_decoder_class = GST_BASE_VIDEO_DECODER_GET_CLASS (object);
|
||||
|
||||
g_object_unref (base_video_decoder->input_adapter);
|
||||
|
||||
|
|
|
@ -1391,11 +1391,9 @@ static void
|
|||
gst_vdp_sink_class_init (VdpSinkClass * klass)
|
||||
{
|
||||
GObjectClass *gobject_class;
|
||||
GstElementClass *gstelement_class;
|
||||
GstBaseSinkClass *gstbasesink_class;
|
||||
|
||||
gobject_class = (GObjectClass *) klass;
|
||||
gstelement_class = (GstElementClass *) klass;
|
||||
gstbasesink_class = (GstBaseSinkClass *) klass;
|
||||
|
||||
parent_class = g_type_class_peek_parent (klass);
|
||||
|
|
|
@ -132,13 +132,10 @@ gst_h264_dpb_bump (GstH264DPB * dpb, guint poc, GstFlowReturn * ret)
|
|||
GstFlowReturn
|
||||
gst_h264_dpb_add (GstH264DPB * dpb, GstH264Frame * h264_frame)
|
||||
{
|
||||
GstH264Frame **frames;
|
||||
GstFlowReturn ret;
|
||||
|
||||
GST_DEBUG ("add frame with poc: %d", h264_frame->poc);
|
||||
|
||||
frames = dpb->frames;
|
||||
|
||||
if (h264_frame->is_reference && h264_frame->is_long_term &&
|
||||
(h264_frame->frame_idx > dpb->max_longterm_frame_idx))
|
||||
h264_frame->is_reference = FALSE;
|
||||
|
|
|
@ -768,7 +768,7 @@ gst_h264_slice_parse_ref_pic_list_reordering (GstH264Slice * slice,
|
|||
do {
|
||||
READ_UE_ALLOWED (reader, reordering_of_pic_nums_idc, 0, 3);
|
||||
if (reordering_of_pic_nums_idc == 0 || reordering_of_pic_nums_idc == 1) {
|
||||
guint32 abs_diff_pic_num_minus1;
|
||||
guint32 abs_diff_pic_num_minus1 G_GNUC_UNUSED;
|
||||
|
||||
READ_UE_ALLOWED (reader, abs_diff_pic_num_minus1, 0,
|
||||
slice->MaxPicNum - 1);
|
||||
|
|
|
@ -471,8 +471,8 @@ gst_vdp_h264_dec_handle_frame (GstBaseVideoDecoder * base_video_decoder,
|
|||
|
||||
GstH264Frame *h264_frame;
|
||||
GstH264Slice *slice;
|
||||
GstH264Picture *pic;
|
||||
GstH264Sequence *seq;
|
||||
GstH264Picture *pic G_GNUC_UNUSED;
|
||||
GstH264Sequence *seq G_GNUC_UNUSED;
|
||||
|
||||
GstFlowReturn ret;
|
||||
GstVdpVideoBuffer *outbuf;
|
||||
|
|
Loading…
Reference in a new issue