dfbvideosink: remove ignored assignments
Remove assignments to DFBResult res that are never read.
This commit is contained in:
parent
7aed8e184f
commit
e04ced027e
@ -1818,7 +1818,7 @@ gst_dfbvideosink_show_frame (GstBaseSink * bsink, GstBuffer * buf)
|
|||||||
src.h = dfbvideosink->video_height;
|
src.h = dfbvideosink->video_height;
|
||||||
}
|
}
|
||||||
gst_caps_unref (caps);
|
gst_caps_unref (caps);
|
||||||
res = surface->GetSize (surface, &dst.w, &dst.h);
|
surface->GetSize (surface, &dst.w, &dst.h);
|
||||||
|
|
||||||
/* Center / Clip */
|
/* Center / Clip */
|
||||||
gst_video_sink_center_rect (src, dst, &result, FALSE);
|
gst_video_sink_center_rect (src, dst, &result, FALSE);
|
||||||
@ -1910,15 +1910,15 @@ gst_dfbvideosink_show_frame (GstBaseSink * bsink, GstBuffer * buf)
|
|||||||
|
|
||||||
gst_video_frame_unmap (&src_frame);
|
gst_video_frame_unmap (&src_frame);
|
||||||
|
|
||||||
res = dest->Unlock (dest);
|
dest->Unlock (dest);
|
||||||
|
|
||||||
dest->Release (dest);
|
dest->Release (dest);
|
||||||
|
|
||||||
if (dfbvideosink->backbuffer) {
|
if (dfbvideosink->backbuffer) {
|
||||||
if (dfbvideosink->vsync) {
|
if (dfbvideosink->vsync) {
|
||||||
res = surface->Flip (surface, NULL, DSFLIP_ONSYNC);
|
surface->Flip (surface, NULL, DSFLIP_ONSYNC);
|
||||||
} else {
|
} else {
|
||||||
res = surface->Flip (surface, NULL, DSFLIP_NONE);
|
surface->Flip (surface, NULL, DSFLIP_NONE);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user