make the NULL check silent since it might be valid.

Original commit message from CVS:
make the NULL check silent since it might be valid.
This commit is contained in:
Steve Baker 2002-04-14 09:57:15 +00:00
parent 157e961c26
commit de355109ae
2 changed files with 2 additions and 2 deletions

View file

@ -145,7 +145,7 @@ gst_disksink_getcurrentfilename (GstDiskSink *disksink)
{ {
g_return_val_if_fail(disksink != NULL, NULL); g_return_val_if_fail(disksink != NULL, NULL);
g_return_val_if_fail(GST_IS_DISKSINK(disksink), NULL); g_return_val_if_fail(GST_IS_DISKSINK(disksink), NULL);
g_return_val_if_fail(disksink->filename != NULL, NULL); if (disksink->filename == NULL) return NULL;
g_return_val_if_fail(disksink->filenum >= 0, NULL); g_return_val_if_fail(disksink->filenum >= 0, NULL);
if (!strstr(disksink->filename, "%")) if (!strstr(disksink->filename, "%"))

View file

@ -145,7 +145,7 @@ gst_disksink_getcurrentfilename (GstDiskSink *disksink)
{ {
g_return_val_if_fail(disksink != NULL, NULL); g_return_val_if_fail(disksink != NULL, NULL);
g_return_val_if_fail(GST_IS_DISKSINK(disksink), NULL); g_return_val_if_fail(GST_IS_DISKSINK(disksink), NULL);
g_return_val_if_fail(disksink->filename != NULL, NULL); if (disksink->filename == NULL) return NULL;
g_return_val_if_fail(disksink->filenum >= 0, NULL); g_return_val_if_fail(disksink->filenum >= 0, NULL);
if (!strstr(disksink->filename, "%")) if (!strstr(disksink->filename, "%"))