gst_qt_mux_reset (qtmux, FALSE);
- if (qtmux->fast_start_file_path)
- g_free (qtmux->fast_start_file_path);
+ g_free (qtmux->fast_start_file_path);
atoms_context_free (qtmux->context);
gst_object_unref (qtmux->collect);
{
gchar *tmp;
- if (qtmux->fast_start_file_path) {
- g_free (qtmux->fast_start_file_path);
- qtmux->fast_start_file_path = NULL;
- }
+ g_free (qtmux->fast_start_file_path);
+ qtmux->fast_start_file_path = NULL;
tmp = g_strdup_printf ("%s%d", "qtmux", g_random_int ());
qtmux->fast_start_file_path = g_build_filename (g_get_tmp_dir (), tmp, NULL);
qtmux->fast_start = g_value_get_boolean (value);
break;
case PROP_FAST_START_TEMP_FILE:
- if (qtmux->fast_start_file_path) {
- g_free (qtmux->fast_start_file_path);
- }
+ g_free (qtmux->fast_start_file_path);
qtmux->fast_start_file_path = g_value_dup_string (value);
/* NULL means to generate a random one */
if (!qtmux->fast_start_file_path) {