aboutsummaryrefslogtreecommitdiff
path: root/src/ui/message.c
diff options
context:
space:
mode:
authorTheJackiMonster <thejackimonster@gmail.com>2022-12-05 21:35:25 +0100
committerTheJackiMonster <thejackimonster@gmail.com>2022-12-05 21:35:25 +0100
commitaefac32b50c41a2a6f137b84b80753cd26333aa5 (patch)
tree89cfedeead31715c9f1f5c86e20fc16b9646522d /src/ui/message.c
parent36058f083af2fccf616b72df5fa387a14db3b657 (diff)
downloadmessenger-gtk-aefac32b50c41a2a6f137b84b80753cd26333aa5.tar.gz
messenger-gtk-aefac32b50c41a2a6f137b84b80753cd26333aa5.zip
Adjusted video file extension support for playback
Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>
Diffstat (limited to 'src/ui/message.c')
-rw-r--r--src/ui/message.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/ui/message.c b/src/ui/message.c
index 3678414..b375215 100644
--- a/src/ui/message.c
+++ b/src/ui/message.c
@@ -502,9 +502,7 @@ _update_file_message(UI_MESSAGE_Handle *handle,
502 return; 502 return;
503 } 503 }
504 504
505 const char* extension = strrchr(filename, '.'); 505 if (ui_play_media_window_supports_file_extension(filename))
506
507 if (0 == g_strcmp0(extension, ".mp4"))
508 { 506 {
509 handle->media = TRUE; 507 handle->media = TRUE;
510 goto file_progress; 508 goto file_progress;