deinterlace, matroska: fix two variable-may-be-used-uninitialized compiler warnings

We use -DG_DISABLE_ASSERT for the pre-releases, which makes these
warnings pop up in cases that were previously covered by g_assert_not_reached()
and the like:
tvtime/greedyh.c:801:14: warning: 'scanline' may be used uninitialized in this function
matroska-mux.c:501:19: warning: 'context' may be used uninitialized in this function
This commit is contained in:
Tim-Philipp Müller 2011-04-16 16:51:32 +01:00
parent a068133ee7
commit c2bc6327cd
2 changed files with 2 additions and 2 deletions

View file

@ -749,7 +749,7 @@ deinterlace_frame_di_greedyh_packed (GstDeinterlaceMethod * method,
break;
default:
g_assert_not_reached ();
break;
return;
}
// copy first even line no matter what, and the first odd line if we're

View file

@ -494,7 +494,7 @@ gst_matroska_pad_reset (GstMatroskaPad * collect_pad, gboolean full)
break;
default:
g_assert_not_reached ();
break;
return;
}
context->type = type;