[frogr] Properly set the 'is-video' property when loading videos
- From: Mario Sanchez Prada <msanchez src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [frogr] Properly set the 'is-video' property when loading videos
- Date: Fri, 30 Nov 2012 10:45:22 +0000 (UTC)
commit f0602b7a2493e37fa0ce7fa681b43d6f2e6471cc
Author: Mario Sanchez Prada <msanchez gnome org>
Date: Fri Nov 30 11:44:55 2012 +0100
Properly set the 'is-video' property when loading videos
src/frogr-file-loader.c | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/src/frogr-file-loader.c b/src/frogr-file-loader.c
index 1c3e306..5bbab07 100644
--- a/src/frogr-file-loader.c
+++ b/src/frogr-file-loader.c
@@ -112,7 +112,7 @@ static gboolean get_gps_coordinate (ExifData *exif,
ExifTag reftag,
gdouble *coordinate);
static FrogrLocation *get_location_from_exif (ExifData *exif_data);
-static FrogrPicture* _create_new_picture (FrogrFileLoader *self, GFile *file, GdkPixbuf *pixbuf);
+static FrogrPicture* _create_new_picture (FrogrFileLoader *self, GFile *file, GdkPixbuf *pixbuf, gboolean is_video);
static void _update_picture_with_exif_data (FrogrFileLoader *self,
const gchar *contents,
gsize length,
@@ -280,7 +280,7 @@ _load_current_file_cb (GObject *object,
}
else
{
- picture = _create_new_picture (self, file, pixbuf);
+ picture = _create_new_picture (self, file, pixbuf, is_video);
_update_picture_with_exif_data (self, contents, length, picture);
}
@@ -610,7 +610,7 @@ get_location_from_exif (ExifData *exif_data)
}
static FrogrPicture*
-_create_new_picture (FrogrFileLoader *self, GFile *file, GdkPixbuf *pixbuf)
+_create_new_picture (FrogrFileLoader *self, GFile *file, GdkPixbuf *pixbuf, gboolean is_video)
{
FrogrFileLoaderPrivate *priv = NULL;
FrogrPicture *picture = NULL;
@@ -618,7 +618,6 @@ _create_new_picture (FrogrFileLoader *self, GFile *file, GdkPixbuf *pixbuf)
gchar *file_name = NULL;
gchar *file_uri = NULL;
guint64 filesize = 0;
- gboolean is_video = FALSE;
GError *error = NULL;
/* Gather needed information */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]